Do you know where your variables are? | |
PerlMonks |
Re: reading the hash information from a fileby bobf (Monsignor) |
on Feb 16, 2007 at 07:14 UTC ( [id://600375]=note: print w/replies, xml ) | Need Help?? |
I'm not exactly sure I understand your question, but if you've got a hash dumped to a file (from something like print Dumper( \%hash )) and you trust the file source, you could read it in to a string and eval it. If you are using the file as a simplified database, you may want to consider DBM::Deep or Storable.
In Section
Seekers of Perl Wisdom
|
|