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

Re: solutions

Thread Previous | Thread Next
January 28, 2002 19:24
Re: solutions
Message ID:
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
                                                  to be Keith


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