marco.shaw has asked for the wisdom of the Perl Monks concerning the following question:

I have a Perl script that I wouldn't want anyone to break. I have users that will need to add some information in the form of a hash table: "foo","bar" "abc","def" I was thinking of trying to load a text file with this info, so it would only be a simple text file that would need to be touched with any modifications. If the load fails, my script goes on, which is OK. My Perl script will need to search the file to see if there's a matching key string, then get the associated value, and return the value to the Perl script. Comments?

Replies are listed 'Best First'.
Re: Loading an external hash
by marto (Cardinal) on Sep 05, 2007 at 12:44 UTC
Re: Loading an external hash
by planetscape (Chancellor) on Sep 05, 2007 at 14:42 UTC
Re: Loading an external hash
by moritz (Cardinal) on Sep 05, 2007 at 12:55 UTC
    There are many different serialization formats, for example YAML, JSON or XML.