Do you know where your variables are? | |
PerlMonks |
Re: Scalar $ENV in a packageby cianoz (Friar) |
on Oct 25, 2000 at 15:19 UTC ( [id://38327]=note: print w/replies, xml ) | Need Help?? |
from "man perlvar"
All Perl variables 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. A few other names are also exempt: ENV STDIN INC STDOUT ARGV STDERR ARGVOUT SIGso adding you get as expected...
In Section
Seekers of Perl Wisdom
|
|