in reply to Re^2: foreach $1
in thread foreach $1
> > Well, they are considered "declared", but that's the extent of it.
Nope, e.g. $% is a special var which is global, @% isn't documented anywhere, but still global
DB<1> x @%=1..3 0 1 1 2 2 3 DB<2> x {package A; @%} 0 1 1 2 2 3 DB<3> x @a=1..3 # not global 0 1 1 2 2 3 DB<4> x {package A; @a} empty array DB<5>
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
|---|