Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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 imbibing at the Monastery: (14)
As of 2015-07-30 23:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls