Front page | perl.fwp |
Postings from January 2002
Re: even.pl solutions
Thread Previous
|
Thread Next
From:
fun_with_perl
Date:
January 31, 2002 23:17
Subject:
Re: even.pl solutions
Message ID:
a3dfed$ha5$1@post.home.lunix
In article <694BB7191495D51183A9005004C0B05452DBC6@ir-exchange-srv.ir.com.au>,
Andrew.Savige@ir.com writes:
> fun_with_perl@ton.iguana.be wrote:
>> And while writing this text, i in fact found:
>>
>> $_=aeiouy;s!!\n\$|--&y-!g;print eval"grep$_--c,<>"
>
> Wow! 49 strokes without any unsightly command line options!
> Notice that *every single* even.pl entry did, in fact,
> have command line options.
>
Hadn't noticed that :-)
A pity I didn't find it during the tournament. For ages I had been trying
to get that \n in there in such a way that the "total count" would get it,
but without destroying the start of the expression, because I knew it would
save one stroke. I couldn't get it to work, but writing the text (saying
y/// does not substitute) made it obvious. I think that I will make
"writing a text about the solution" something I'll do during the playing
itself. It forces you to make your assumptions explicit.
Thread Previous
|
Thread Next