Don't ask to ask, just ask | |
PerlMonks |
Re: eval order of args to a subby ikegami (Patriarch) |
on May 30, 2007 at 19:56 UTC ( [id://618297]=note: print w/replies, xml ) | Need Help?? |
Perl evaluates the arguments from left to right (according to the associtivity of the list seperator).
However, because Perl passes all arguments by reference, the order of operation sometimes *appears* unclear.
The first snippet is similar to
The second snippet is similar to
Can you guess what the following prints?
In Section
Seekers of Perl Wisdom
|
|