Perl: the Markov chain saw | |
PerlMonks |
Re: Re: Re: An obscure side effect?by sgifford (Prior) |
on Aug 04, 2003 at 06:21 UTC ( [id://280572]=note: print w/replies, xml ) | Need Help?? |
Perhaps there's some way to do this, but in general parentheses control the order of evaluation for math operators, not the order of execution for assignments or argument evaluation. For example, how would you parenthesize to make
evaluate the left-hand side before the right, producing $a[0] = 1? Or to make evaluate the second $i before the first, producing 1? How would you suggest parenthesizing in swab to guarantee the order of execution for this?
In Section
Seekers of Perl Wisdom
|
|