Perl-Sensitive Sunglasses | |
PerlMonks |
Re: accessing valuesby Fletch (Bishop) |
on Oct 14, 2020 at 21:20 UTC ( [id://11122844]=note: print w/replies, xml ) | Need Help?? |
As has been mentioned lexicals at a file scope aren't accessible outside that file. What you've written is (more or less) equivalent to trying to do this:
If you tried to do that under strict you'd get errors immediately because you're trying to access variables after they've gone out of scope. See Coping with Scoping.
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|