http://www.perlmonks.org?node_id=1053932


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