Hi,
Check Storable module.
Example:use Storable; store \%hash, 'filename'; $hashref = retrieve('filename');
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')};In reply to Re: Storing hash with key & value in a file
by vinoth.ree
in thread Storing hash with key & value in a file
by kpsinha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |