Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Sorting a hash. What am I doing wrong?

by Enlil (Parson)
on Jan 14, 2003 at 00:28 UTC ( [id://226667]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @uniq = sort {$seen{$a} <=>  $seen{$b} } keys %seen;
    
  2. or download this
    @uniq = sort {$a <=>  $b } keys %seen;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-03-28 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found