Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Trying to make a string generated like google

by davorg (Chancellor)
on Jun 30, 2010 at 07:50 UTC ( #847271=note: print w/replies, xml ) Need Help??


in reply to Re^2: Trying to make a string generated like google
in thread Trying to make a string generated like google

I've just logged on for the first time for almost a year and saw your unanswered question. It's really quite simple.

my @sorted_phrases = sort { $b->{count} <=> $a->{count} or $b->{sort_number} <=> $a->{sort_number} } values %$strings;

It's really worth reading the Perl FAQ. See How do I sort an array by (anything)?

--

See the Copyright notice on my home node.

Perl training courses

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2023-12-10 07:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (38 votes). Check out past polls.

    Notices?