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.