Perl: the Markov chain saw | |
PerlMonks |
Re: Hash sort again!!by arturo (Vicar) |
on Apr 26, 2001 at 01:37 UTC ( [id://75628]=note: print w/replies, xml ) | Need Help?? |
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, will increment $sentence_count{$count}. HTH
In Section
Seekers of Perl Wisdom
|
|