in reply to Re: Evaluation Order again.
in thread Evaluation Order again.
If I'm reading your statement correctly, and given a func that looks like this:
And given $i starting at, say, 3, what would you suppose the output to look like? The way I read your your ordering is that I should expect "3 4 6" (once we've added the missing $ to the second parameter). However, that's not what I get. I get "4 4 6" consistently across perls going back to 5.8.8 (which is as far back as I've got here). So either my interpretation of your statement is wrong or the documentation doesn't match the implementation. I'm not sure which.sub func { print $_, ' ' for @_; print "\n"; $_[2]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Evaluation Order again.
by ikegami (Patriarch) on May 30, 2016 at 19:22 UTC | |
by Tanktalus (Canon) on May 30, 2016 at 19:35 UTC |