Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Is 'use vars' really obsolete?

by AnomalousMonk (Archbishop)
on Sep 19, 2017 at 02:22 UTC ( [id://1199641]=note: print w/replies, xml ) Need Help??


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

I can't see a case for use vars which can't be solved with our.

And indeed, solved better, because our operates within a well-defined lexical scope rather than the (can we say global?) scope of a package namespace. I, too, would be curious to see an example of use vars that jnorden would assert would do something that lexical our and my could not do better (WRT variable names, that is).


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2024-03-29 06:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found