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

Re: Persistent variables

by snoopy (Deacon)
on Aug 22, 2007 at 05:55 UTC ( #634252=note: print w/ replies, xml ) Need Help??


in reply to Persistent variables

Btw, tilly's Tie::Static does what you want:

use Tie::Static qw(static); sub persist { static \ (my $var); ++$var; }


Comment on Re: Persistent variables
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2014-07-31 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (253 votes), past polls