in reply to Storing hash with key & value in a file
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')};
|
|---|