in reply to using an external file as a hash

There are a lot of modules that try to achive that goal. Storable Data::Dump Data::Dumper Yaml Data::DumpXML I like Storable and Data::Dumper most.