Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- open $file, 'test.txt';
- map {$freq{lc $_}++} split for <$file>;
- say "$_: $freq{$_}" for sort {$freq{$b} <=> $freq{$a}} keys %freq;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement