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

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"; };


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
    "my apologies to everyone for the delayed response."

    Thanks for the code thinker, works fine.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://440665]
[1nickt]: Corion HPs? ugh. I was impressed with Lenovo's gaming laptops; if it weren't for the red backlighting and general flashiness of the aesthetic, I might have gone with that. But all that was until I discovered that the Dell Precision line is still around.
[1nickt]: stevieb I don;t doubt that there's a difference. BestBuy has "consumer" models only on display.
[ambrus]: 1nickt: for some reason, these days they call every computer "gaming", even ones that gamers wouldn't buy. I've bought a keyboard that was labelled "gamer", despite that it has hard springs and seems to be way better for typing than for gaming;
[1nickt]: I though the gamers like that because they bash the keys so hard.
[ambrus]: and I've seen motherboards with no fast expansion ports for a video card but built-in hardware RAID advertized as "gaming".
LanX has a shaming laptop
[ambrus]: 1nickt: my impression is that the gamers like the softer springs, because fast reaction time is more important to them then feedback from keypresses to recognize typos.

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (14)
As of 2017-03-27 13:41 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.