Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Hash sort again!!

by arturo (Vicar)
on Apr 26, 2001 at 01:37 UTC ( #75628=note: print w/ replies, xml ) Need Help??


in reply to Hash sort again!!

A couple of side notes that will simplify your code somewhat: once you've got the array of words, you don't need a foreach loop with the $Counter</code> increment to get the # of words in the array; a simple my $count = @words will do. Another little note: save some keystrokes,

$sentence_count{$count}++;
will increment $sentence_count{$count}.

HTH


Comment on Re: Hash sort again!!
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-10-25 12:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (143 votes), past polls