develooper Front page | perl.fwp | Postings from January 2002

Re: even.pl solutions

Thread Previous | Thread Next
From:
Keith C. Ivey
Date:
January 28, 2002 20:12
Subject:
Re: even.pl solutions
Message ID:
3C55DB38.30429.1FA8189D@localhost
Andrew.Savige@ir.com wrote:

> Keith, who is always meticulous in his choice of delimiter,
> might write it like this. :)
> 
> $_ x=1&~$.&~s/$&/$&/gwhile'aeiouy.'=~/./g         Rick
> $_ x=~-2&~$.&~s~$&~$&~gwhile q~aeiouy.~=~/./g     /-\ndrew
>                                                   pretending
>                                                   to be Keith

Now, now.  When playing golf (as opposed to simple 
obfuscation), I never let my choice of delimiter get in the way 
of making the score as low as possible.  I would have stuck 
with

  $_ x=1&~$.&~s~$&~$&~gwhile'aeiouy.'=~/./g

But I was glad to see in the results several versions (by me 
and others) of the lovely

  -ln 1&($.|y|o|||y|e|||y|u|||y|a|||y|i|||y|y|||y|||c)||print


-- 
Keith C. Ivey <kcivey@cpcug.org>
Washington, DC

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About