Talk:Inverted syntax: Difference between revisions

(perl confusion)
Line 61:
 
::: More specifically, in one example Perl was being used to select one of two values to assign '''to''' the variable $a and in the other example, Perl was being used to select one of two variables ($b or $c) to be assigned '''from''' the variable $a. And these two examples were presented side by side without comment, as if they were equivalent. --[[User:Rdm|Rdm]] 18:27, 6 June 2011 (UTC)
 
::: Ok, now the perl entry says "However this may produce different results to the traditional syntax form", but I think that that is misleading. The differing results in this case have nothing to do with the inverted conditional syntax. The differing results are because the left and right values on either side of the assignment operator are swapped. Both the traditional and inverted syntaxes would achieve the same result if they were both on the same side of the <code>=</code>. --[[User:Rdm|Rdm]] 20:00, 6 June 2011 (UTC)
6,951

edits