in reply to
Updating hard coded variable?
Your first approach(writing the data to a flat file or to a database or DBM) is a totally sane way to do this. Modifying the script itself in-place is trickier, and much more error prone.
Comment on
Re: Updating hard coded variable?
In Section
Seekers of Perl Wisdom