go ahead... be a heretic | |
PerlMonks |
Re: surprising backwards evaluation orderby diotalevi (Canon) |
on Mar 17, 2006 at 20:21 UTC ( [id://537558]=note: print w/replies, xml ) | Need Help?? |
It's undefined whether perl evaluates ->( ... ) before or after func. It has to have evaluated both prior to calling func with the arguments but before that it's completely up in the air about which happens first. One thing to note, the comma operator has explicit order of operation. It evaluates the argument to tit's left, then evaluates the one on the right. ⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
In Section
Seekers of Perl Wisdom
|
|