Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: Global destruction feature / bug ?

by jettero (Monsignor)
on Apr 03, 2008 at 14:33 UTC ( #678175=note: print w/replies, xml ) Need Help??


in reply to Re^3: Global destruction feature / bug ?
in thread Global destruction feature / bug ?

You sure about that? That's really not the way I'm seeing it work. It's just like use vars, but shorter and only initially available where you intend to use it. Perhaps I don't see the problem clearly.

test->function; print "$test::yeah\n"; package test; sub function { our $yeah = 7; }

I don't see how it limits you, but I do see a clear benefit: I like it better than use vars.

-Paul

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://678175]
help
Chatterbox?
[choroba]: touché
[Discipulus]: first!! drinking is my best fu
[Discipulus]: ouch.. first!!

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2017-10-19 11:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (252 votes). Check out past polls.

    Notices?