in reply to Re: Competition fuels obsession over Perl [golf]
in thread Competition fuels obsession over Perl
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
/-\
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Competition fuels obsession over Perl [golf]
by educated_foo (Vicar) on Feb 19, 2004 at 16:56 UTC | |
by eyepopslikeamosquito (Archbishop) on Feb 19, 2004 at 21:13 UTC | |
by educated_foo (Vicar) on Feb 19, 2004 at 22:29 UTC |
In Section
Meditations