in reply to Top five words by occurrence
... my @words = split /\W+/; ...
For show only first 5 occurs you can use this syntax:
.............foreach $w ( ( sort { $count{$b} <=> $count{$a} } keys %count ) [0..4] ) { ... }
--
Marco Antonio
Rio-PM
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Top five words by occurrence
by ikegami (Patriarch) on Jul 18, 2005 at 16:56 UTC |