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

Re: solutions

Thread Previous | Thread Next
January 31, 2002 23:17
Re: solutions
Message ID:
In article <>, writes:
> 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* 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About