in reply to Re^6: Is 'use vars' really obsolete?
in thread Is 'use vars' really obsolete?
No you call it inside your import().
at least that's what works with strict and warnings
See Re: Code Reuse
> since the perl internals could easily change in a new release
That's extremely unlikely in this case, since it goes to the very foundations of Perl 4, symbol tables and strict.
And if there was any kind of such change of internals, it would most likely imply killing use vars off, and you'd have more serious problems then.
It's like the chance of the planet spontaneously swapping magnetic poles. ;)
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^8: Is 'use vars' really obsolete?
by Anonymous Monk on Sep 23, 2017 at 16:58 UTC | |
by perl-diddler (Chaplain) on Sep 24, 2017 at 21:14 UTC | |
by Anonymous Monk on Sep 24, 2017 at 22:05 UTC | |
by LanX (Saint) on Sep 23, 2017 at 19:15 UTC |