in reply to surprising backwards evaluation order
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.
⠤⠤ ⠙⠊⠕⠞⠁⠇⠑⠧⠊
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: surprising backwards evaluation order
by fizbin (Chaplain) on Mar 17, 2006 at 20:23 UTC |