in reply to Re: Re: Competition fuels obsession over Perl [golf]
in thread Competition fuels obsession over Perl
Oh, man I'm rusty. Here are a few minor tweaks. For the full version, one less:
For the "less than ten vowels" version, you can also lose one by getting rid of that space after the "map{9-".$$_=lc=~y/aeiou//for@F;print"$$_ $_"for sort{$$b-$$a||$a cmp$b}@F
Finally, if they meant increasing order of vowel count and less than nine vowels, then we can do much better ;)
-an print sort map y/aAeEiIoOuU//." $_\n",@F
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: Re: Competition fuels obsession over Perl [golf]
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