in reply to Order of execution of functions in list
Reading the linked discussions reveals that the problem is related to lvalues and composed expressions (like ++$i) with side effects.
shift is a simple expression (a builtin in this case), has no side-effects and returns an rvalue.
Cheers Rolf
( addicted to the Perl Programming Language)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Order of execution of functions in list
by ikegami (Patriarch) on Sep 13, 2013 at 13:26 UTC | |
by LanX (Saint) on Sep 13, 2013 at 14:05 UTC | |
by LanX (Saint) on Sep 13, 2013 at 17:02 UTC | |
by ikegami (Patriarch) on Sep 16, 2013 at 02:08 UTC | |
by Anonymous Monk on Sep 16, 2013 at 03:12 UTC | |
by ikegami (Patriarch) on Sep 20, 2013 at 18:25 UTC | |
Re^2: Order of execution of functions in list
by vsespb (Chaplain) on Sep 13, 2013 at 13:06 UTC | |
by LanX (Saint) on Sep 13, 2013 at 14:00 UTC |
In Section
Seekers of Perl Wisdom