Problems? Is your data what you think it is? | |
PerlMonks |
Re: Storing hash with key & value in a fileby vinoth.ree (Monsignor) |
on Dec 16, 2014 at 10:04 UTC ( [id://1110473]=note: print w/replies, xml ) | Need Help?? |
Hi, Check Storable module. Example:
This code stores the %hash into filename, the last line retrieves the stored hash from the file. if you wanted a hash instead of a hash reference, wrap the "retrieve" call in side %{} my %original_hash = %{retrieve('filename')};All is well
In Section
Seekers of Perl Wisdom
|
|