in reply to using external file for hashes

I use YAML for this as I can share the information between applications. I have also used JSON for this task as well.

YAML has two methods for this task from the YAML POD

DumpFile(filepath, list) Writes the YAML stream to a file instead of just returning a string. LoadFile(filepath) Reads the YAML stream from a file instead of a string.