Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    use strict;
    ...
    my %hash2=("B"=>2);
    foreach my $hashref (\%hash1,\%hash2) {
      print "$hashref:",ref($hashref),":",(join ",",sort keys %{$hashref})
    +,"\n";
    
  2. or download this
    HASH(0x2002a3d0):HASH:A
    HASH(0x2002a418):HASH:B
    
  3. or download this
    hash1:A
    hash2:B