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

Re: solutions

Thread Previous | Thread Next
Keith C. Ivey
January 28, 2002 20:12
Re: solutions
Message ID:
3C55DB38.30429.1FA8189D@localhost 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 

  $_ 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 <>
Washington, DC

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About