Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: @_ & @ARGV

by moritz (Cardinal)
on Oct 07, 2012 at 14:48 UTC ( #997681=note: print w/replies, xml ) Need Help??


in reply to @_ & @ARGV

@_ contains the arguments to the current (inner-most) subroutine, which is why the @_ in the inner subroutine is different from that of the outer subroutine. shift acts on @_ by default, which is why it gets the first argument to the inner-most function.

Strictly speaking,

my @list = @_; print @_, ' out return', "\n";

is the only content directly in sub formatlist, the rest is in an inner functio which has its own @_.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997681]
help
Chatterbox?
[Discipulus]: choroba thanks but that sequence uses Unicode codepoint, not ascii number
[choroba]: ASCII is subset of unicode
[1nickt]: hi trippledubs, nice to see you again.
[1nickt]: karlgoethebier that would be "trying out" German that I remember from long ago!
1nickt used to be in a meatspace monastery, in EU, with lots of wanderers from all over the world ...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2017-12-13 13:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (366 votes). Check out past polls.

    Notices?