Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: How do you save a perl script?

by Dominus (Parson)
on Mar 25, 2001 at 19:52 UTC ( [id://67028]=note: print w/replies, xml ) Need Help??


in reply to Re: How do you save a perl script?
in thread How do you save a perl script?

Says Adam:
Don't. Instead, save the variable to a separate state file using Data::Dumper, then eval it back into your program.
Holy cow. Dude, it's a counter file. It's just a number. What for you have to use Data::Dumper?

Wowsers, talk about using a sledge hammer to squish a mosquito!

Replies are listed 'Best First'.
Re: Re: How do you save a perl script?
by Adam (Vicar) on Mar 26, 2001 at 04:58 UTC
    Yup. But I'm not interested in the "How do I save a counter" problem. I'm interested in the more generic "How do I save state" problem. I s'pose I should have specified that. Sorry.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-24 09:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found