Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: passing an array without a name to pop()

by johngg (Canon)
on Dec 03, 2019 at 22:44 UTC ( [id://11109633]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    johngg@shiraz:~/perl/Monks$ perl -Mstrict -Mwarnings -E '
    say sub { pop }->( 1, 3, 5, 7, 9 );'
    9
    
  2. or download this
    johngg@shiraz:~/perl/Monks$ perl -Mstrict -Mwarnings -E '
    say sub { shift }->( 1, 3, 5, 7, 9 );'
    ...
    c
    johngg@shiraz:~/perl/Monks$ perl -Mstrict -Mwarnings -E 'say shift' a 
    +b c
    a
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11109633]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-25 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found