XP is just a number | |
PerlMonks |
Re: @_ & @ARGVby moritz (Cardinal) |
on Oct 07, 2012 at 14:48 UTC ( [id://997681]=note: print w/replies, xml ) | Need Help?? |
@_ 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,
is the only content directly in sub formatlist, the rest is in an inner functio which has its own @_.
In Section
Seekers of Perl Wisdom
|
|