in reply to hash in SDBM_File
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'
|
|---|