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 reply to Re: surprising backwards evaluation order
by diotalevi
in thread surprising backwards evaluation order
by fizbin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |