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
    Officially undefined, as in you have a reference that says that, or as in it's not specified anywhere?
    --
    @/=map{[/./g]}qw/.h_nJ Xapou cets krht ele_ r_ra/; map{y/X_/\n /;print}map{pop@$_}@/for@/