Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Order of execution of functions in list

by ikegami (Pope)
on Sep 13, 2013 at 13:26 UTC ( #1053932=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ perl -E'@a=qw( a b c ); say 0+@a; shift(@a); say 0+@a;'
    3
    2
    
  2. or download this
    $ perl -E'$_=123; say; sub { sub { ++$_[0] }->(shift); }->($_); say;'
    123
    124
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053932]
help
Chatterbox?
[karlgoethebier]: Rollmops == German Sushi

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2017-11-21 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (297 votes). Check out past polls.

    Notices?