Perl Monk, Perl Meditation | |
PerlMonks |
Re^7: Is 'use vars' really obsolete?by LanX (Saint) |
on Sep 23, 2017 at 11:21 UTC ( [id://1199959]=note: print w/replies, xml ) | Need Help?? |
> On calling vars->import(List), do you mean in the program that's using the module? Where would var->import import things from? 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
In Section
Seekers of Perl Wisdom
|
|