use Storable qw/ freeze thaw /; # Create serial representation of hash structure $serialised = freeze \%hash; . . . # Recreate hash structure from serial representation %hash = %{ thaw( $serialised ) }
Other modules which allow the representation and storable of complex data structures within serial formats include Data::Dumper and Data::Denter - The primary advantage which Storable offers over these modules is speed.
perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'
In reply to Re: hash in SDBM_File
by rob_au
in thread hash in SDBM_File
by camelry
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |