Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to Re^6: Is 'use vars' really obsolete?
in thread Is 'use vars' really obsolete?

> 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
(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
    It's like the chance of the planet spontaneously swapping magnetic poles. ;)
    Which actually happens every half-million years or so. Just to put things in perspective.
      Anonmonk responded:
      It's like the chance of the planet spontaneously swapping magnetic poles. ;)

      Which actually happens every half-million years or so. Just to put things in perspective.


      Didn't I read that it was due or overdue any time now? *gulp*... To paraphrase a saying:

      Just because I'm paranoid doesn't mean the poles might not switch soon... ;^)

        Didn't I read that it was due or overdue any time now?
        There was a very short one just 40k years ago, and it usually takes hundreds of years to complete a flip. So don't worry about it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1199959]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (9)
As of 2024-04-18 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found