Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Frequency of words in text file and hashes

by thinker (Parson)
on Mar 18, 2005 at 11:10 UTC ( #440665=note: print w/ replies, xml ) Need Help??


in reply to Frequency of words in text file and hashes

Hi perl_seeker

This should do what you want

for (sort {$count{$b} <=> $count{$a}} keys %count){ print "$_ $count{$_}\n"; };

thinker


Comment on Re: Frequency of words in text file and hashes
Download Code
Replies are listed 'Best First'.
Re^2: Frequency of words in text file and hashes
by perl_seeker (Scribe) on Mar 24, 2005 at 09:36 UTC
    Hello!
    "my apologies to everyone for the delayed response."

    Thanks for the code thinker, works fine.
    perl_seeker:)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2015-07-31 05:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls