3 strokes sh?aved.
#!perl -aln $$_=y/aAeEiIoOuU//for@F;print"$$_ $_"for sort{$$b-$$a||$a cmp$b}@F
Using a G-R transform (and assuming less than 9 vowels per word) saves 8 more.
#!perl -an print+map{/./;9-$&.$'}sort map{9- y/aAeEiIoOuU//." $_\n"}@F
/-\
In reply to Re: Re: Competition fuels obsession over Perl [golf]
by eyepopslikeamosquito
in thread Competition fuels obsession over Perl
by snowsmann
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |