No such thing as a small change | |
PerlMonks |
Re^3: Is 'use vars' really obsolete?by AnomalousMonk (Archbishop) |
on Sep 19, 2017 at 00:56 UTC ( [id://1199639]=note: print w/replies, xml ) | Need Help?? |
our has lexical scope. Try the statement print 'unqualified: ', $test; in package Bar. BTW: Perl 5.14 introduced the neater (IMHO) package NAMESPACE BLOCK syntax, so the code above could now look like
Update: Note that package also has lexical scope! Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|