Mega Code Archive
Categories
/
Perl
/
File
Using store function to save hash value to a file
use Storable; %hash = ( meat => turkey, drink => tea, cheese => colby, ); store(\%hash, "hash.dat"); %hash2 = %{retrieve("hash.dat")}; print $hash2{drink};