Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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
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 chanting in the Monastery: (12)
As of 2014-07-23 22:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (153 votes), past polls