Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: statefulness and Perl

by zentara (Archbishop)
on Feb 02, 2012 at 08:51 UTC ( #951379=note: print w/replies, xml ) Need Help??


in reply to statefulness and Perl

Is there a way to obtain the same result in running Perl scripts?

I would store all my program's runtime variables in a hash, and write that hash to an sqlite database. When starting up, the program just reads the db and does what it needs to do.


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku ................... flash japh

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://951379]
help
Chatterbox?
[Corion]: Ugh - the FSF wants to merge Magit into Emacs (or rewrite Magit). It seems they haven't learned from Perl+CPAN that not having things in core is good.

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2017-07-21 11:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (321 votes). Check out past polls.