Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!perl -F\. -aln
- BEGIN { @ARGV = ("massa.txt") }
- $s{$F[-1]}++ }
- { printf "%3d %s\n", $s{$_}, $_ for sort {$s{$b} <=> $s{$a}} keys %s
- # Based on http://pastebin.com/aU0w39QK and
- # https://www.facebook.com/pythonbrasil/photos/a.582882565067606.1073741825.328258703863328/776054062417121/
Advertisement
Add Comment
Please, Sign In to add comment