Front page | perl.fwp |
Postings from January 2002
Re: even.pl solutions
Thread Previous
|
Thread Next
From:
Matthew Byng-Maddick
Date:
January 29, 2002 01:21
Subject:
Re: even.pl solutions
Message ID:
20020129092105.B25010@colon.colondot.net
On Mon, Jan 28, 2002 at 11:14:00PM -0500, Keith C. Ivey wrote:
> 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
Indeed, I thought that was very beautiful when I discovered it.
Although all my solutions were based on using eval and substitutions to
recreate a string looking much like that.
It just didn't occur to me to use the $_ x=... trick, by which I'm still
stunned.
MBM
--
Matthew Byng-Maddick <mbm@colondot.net> http://colondot.net/
Thread Previous
|
Thread Next