develooper Front page | perl.fwp | Postings from December 2001

Re: Santa Hole 5 (wc.pl) Post Mortem

Thread Previous | Thread Next
From:
BooK
Date:
December 7, 2001 05:59
Subject:
Re: Santa Hole 5 (wc.pl) Post Mortem
Message ID:
1007733545.3c10cb29b2074@imp3-1.free.fr
En réponse à "Keith C. Ivey" <kcivey@cpcug.org>:

> > --- Keith C Ivey --------------------- 22
> > #! /usr/bin/perl -lp
> > }{$_=7e10+$.,s$.$$
> 
> Looks like I was the only one who didn't use printf on this 
> hole (other than Piers, but using $# is similar), and I was 
> only one stroke short of the winners.

That's a very clever one!
 
> I'm surprised no one submitted anything with 0 x10, but I
> guess those always end up too long.

Well, I tried a lot of thing with x10, like $-x10, because I wanted really
hard to use the magic features of ++ on strings, but they were all too long.

When I get home in a few hours, il post all my tests for wc.pl, in decreasing
length... (some of the longuest for found very late -- had to test others ways
to do it)

-- 
 Philippe BRUHAT - BooK

 When you run from your problem, you make it that much harder for good
 fortune to catch you, as well.     (Moral from Groo The Wanderer #14 (Epic))

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