Help for this page

Select Code to Download


  1. or download this
    open HANDLE, 'testhash.txt' or die "Can't open: $!";
    my $data = <HANDLE>;
    close HANDLE;
    ...
    foreach my $key (keys %hash) {
       print "$key $hash{$key}\n";
    }
    
  2. or download this
    my %hash = map {split /,/} grep !/^,$/, split /'/, $data;