Shorter, with still one dollar. (actually, only shorter because you
have grep{} instead of grep with a comma, so the same)
perl -alp0e '$_=(grep/[mackrel]/,@F)/@F' < sowpods
Without the dollar, it's a bit longer, of course.
perl -aln0e 'print+(grep/[mackrel]/,@F)/@F' < sowpods
But that is the best I can do..
--
Jasper
(I'll send the tested one to the list, Phil)
now, if you actually want the answer to the question "what ratio of
words in the SOWPODS wordlist share _no_ letters in common with the word
mackerel?", you'd need to add a "!", like this:
perl -le 'print+(grep{!/[mackrel]/}@w=<>)/@w' < sowpods