Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Updating hard coded variable?

by tweetiepooh (Friar)
on Oct 06, 2009 at 16:09 UTC ( #799519=note: print w/ replies, xml ) Need Help??


in reply to Updating hard coded variable?

There are ways to do (nearly) anything in Perl but self modifying code is "not a good idea". Is there a reason for not writing out to a persistent store (file/database)?

You could wrap your script inside another script which would capture a return value and then pass that value into the script as a parameter on the next run but again that is a complex and odd way to accomplish what is better done with a data store.


Comment on Re: Updating hard coded variable?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (12)
As of 2015-07-03 11:53 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 (51 votes), past polls