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

Re: even.pl solutions

Thread Previous | Thread Next
From:
Andrew.Savige
Date:
January 28, 2002 19:24
Subject:
Re: even.pl solutions
Message ID:
694BB7191495D51183A9005004C0B05452DBAC@ir-exchange-srv.ir.com.au
Philippe 'BooK' Bruhat wrote:
> Other nice entries were the ones that used s/$&/$&/ while
> aeiouy=~/.?/g I love this use of two different values of $&
> (which are equal, but not the same)

Rick Klement wrote:
> When I found that s/$&/$&/g for my 44, I had the "giggles"
> for a day  :)

Rick, there were loud mad cackles from me when I opened my
email and saw your little gem.

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

/-\ndrew

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