in reply to Order of execution of functions in list
Operand evaluation order isn't defined for all operators[1], but it is for this one.
Quote perlop,
In list context, [,] is just the list argument separator, and inserts both its arguments into the list. These arguments are also evaluated from left to right.
That's perfectly fine.
- For example, Perl doesn't define the order in which f, g and h will be called by f() + g() + h().
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Order of execution of functions in list
by LanX (Saint) on Sep 13, 2013 at 14:17 UTC | |
by ikegami (Patriarch) on Sep 16, 2013 at 02:02 UTC | |
Re^2: Order of execution of functions in list
by vsespb (Chaplain) on Sep 13, 2013 at 13:26 UTC |
In Section
Seekers of Perl Wisdom