Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Sorting hashes with new value detection

by serf (Chaplain)
on Jan 24, 2006 at 18:25 UTC ( [id://525275]=note: print w/replies, xml ) Need Help??

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) {
    
    ...
    
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://525275]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-18 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found