Help for this page

Select Code to Download


  1. or download this
    my %hash;
    
    map { push( @{ $hash{ $values{$_} } }, $_ ) } keys %values;
    
  2. or download this
    while(my($k,$v)=each%values){push@{$hash{$v}},$k;}
    
  3. or download this
    map{push(@{$hash{$values{$_}}},$_)}keys%values;
    
  4. or download this
    for my $key (reverse sort keys %hash) {
    
    ...
    
    }