title: Assignment inside Perl ternary conditional operator problems
body: <p>This snippet of Perl code in my program is giving the wrong result.</p>
  
  <pre><code>$condition ? $a = 2 : $a = 3 ;
  print $a;
  </code></pre>
  
  <p>No matter what the value of <code>$condition</code> is, the output is always 3, how come?</p>