in reply to Writing a hash of two variables to a file
If you really want to access the file as a hash, Storable is one way to do it. Another might be to use Tie::File::AsHash. See perltie for more information.