Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: trouble understanding code, and shift() w.o args

by moritz (Cardinal)
on Aug 04, 2011 at 15:16 UTC ( [id://918560]=note: print w/replies, xml ) Need Help??


in reply to trouble understanding code, and shift() w.o args

Try perldoc -f shift, or shift:

If ARRAY is omitted, shifts the @_ array within the lexical scope of subroutines and formats

perlvar tells you what @_ is:

Within a subroutine the array @_ contains the parameters passed to that subroutine.

I also think that all the perl introductions I've read explain this.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-04-24 12:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found