you are even referring to two different @_ arrays explicitly. The one that passes the parameters into the subroutine and the global one that you use to store your data.
:) There is only one @_ and it is "super global" that is anytime you write @_ its always @_ (its always @main::_ ) regardless of package
Symbol isn't exactly authoritative but it does show this
$ perl -MSymbol=qualify -le " print qualify($_,q/Fooo/) for qw/ ARGV S +TDOUT STDERR _ AHOY / main::ARGV main::STDOUT main::STDERR main::_ Fooo::AHOY
pervar says: Perl identifiers that begin with digits, control characters, or punctuation characters are exempt from the effects of the package declaration and are always forced to be in package main ; they are also exempt from strict 'vars' errors. A few other names are also exempt in these ways: ENV STDIN INC STDOUT ARGV STDERR ARGVOUT SIG
In reply to Re^2: can't find mistake. lost in references (super global @_ is always in main @main::_ $main::_ )
by Anonymous Monk
in thread can't find mistake. lost in references
by rsFalse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |