Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use Data::Dumper;
    ...
    my $data = do { local $/; <FILE> };
    my %newhash = %{eval $data};
    
  2. or download this
    use Storable;
    store \%hash, '/tmp/hash';
    my %newhash = %{retrieve('file')};