Help for this page

Select Code to Download


  1. or download this
    foreach my $key1 (sort keys( %hash ) )
    {
        foreach my $key2 (sort keys( %{$hash{$key1}} ) )
    ...
            }
        }
    }
    
  2. or download this
    @SortedArrayOfHashes = sort 
                { 
    ...
                        $a->{'key3'} cmp $b->{'key3'} #if these are equal,
    + then we give up; they're the same.
                }
                @ArrayOfHashes;