Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: History Meme, in Perl!

by smokemachine (Hermit)
on Jun 05, 2008 at 15:55 UTC ( [id://690468] : note . print w/replies, xml ) Need Help??


in reply to History Meme, in Perl!

history|perl -anE '$h{$F[1]}++;}{say"$h{$_} $_"for(sort{$h{$b}<=>$h{$a}}keys%h)[0..9]'