Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Frequency of words in text file and hashes

by thinker (Parson)
on Mar 18, 2005 at 11:10 UTC ( [id://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

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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://440665]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-25 14:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found