in reply to Re: Order of execution of functions in list
in thread Order of execution of functions in list
has no side-effects
$ perl -E'@a=qw( a b c ); say 0+@a; shift(@a); say 0+@a;' 3 2
returns an rvalue
$ perl -E'$_=123; say; sub { sub { ++$_[0] }->(shift); }->($_); say;' 123 124
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Order of execution of functions in list
by LanX (Saint) on Sep 13, 2013 at 14:05 UTC | |
|
Re^3: Order of execution of functions in list
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 |