in reply to read a hash from a file

CPAN has several modules for reading and writting config (.ini) files. This would probably be a better format
Bill