http://www.perlmonks.org?node_id=799480


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.