Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Piers Cawley
Eugene van der Pijll [EMAIL PROTECTED] writes: [EMAIL PROTECTED] schreef op 06 december 2001: if there is any interest ... hmm, Piers, do you give a damn? Eugene, I think there is intense interest in your scores! I did get that impression. I would like to leave it up to Eugene to decide

Re: tri-state flags

2001-12-06 Thread Bart Lateur
On 5 Dec 2001 16:25:16 -, Lars Henrik Mathiesen wrote: [EMAIL PROTECTED] (Bernie Cosell) writes: On 5 Dec 2001, at 11:34, [EMAIL PROTECTED] wrote: But Bart said he wanted to test for 0. The test above, and several of the other proposals don't distinguish between 0 and the empty string.

Re: tri-state flags

2001-12-06 Thread Bart Lateur
On Thu, 6 Dec 2001 02:56:58 -0500, Uri Guttman wrote: so the main boolean test is ref! Thank goodness that ref() doesn't generate a warning when used with undef as a parameter. -- Bart.

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Andrew . Savige
Santa checking in. It's 5:15 AM here in Sydney (not sunny yet;-). Still, I've got my 6-pack of beer ready. When this is over, I'll drink a toast to the winners, then go the the beach :). Current Leaderboard --- 1. 89Eugene van der Pijll 2. 91Piers Cawley 3.

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Philip Newton
On Tue, 4 Dec 2001 22:33:45 +0100 (CET), [EMAIL PROTECTED] (Philippe 'Book' Bruhat) wrote: it's straightforward Perl, as documented in Amelia What's Amelia? Cheers, Philip

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Leon Brocard
Philip Newton sent the following bits through the ether: What's Amelia? Amelia is the London.pm beanie baby camel: http://use.perl.org/journal.pl?op=listuid=2490 (or Programming Perl, see the back) ;-), Leon -- Leon Brocard.http://www.astray.com/

Re: tri-state flags

2001-12-06 Thread Philip Newton
On Thu, 06 Dec 2001 13:46:41 +0100, [EMAIL PROTECTED] (Bart Lateur) wrote: Also intersting to note is its behaviour WRT perl booleans. As you know, (or should know ;-)), is that these have a dual nature: a boolean false is 0 in numerical context, and in string context. Well, apparently ~

RE: The Santa Claus Golf Apocalypse

2001-12-06 Thread Andrew . Savige
Oops, sorry, yes we are on daylight savings. Corrected to 3 hours to go (approx 2 1/2 hours now). Santa -Original Message- From: Eugene van der Pijll [mailto:[EMAIL PROTECTED]] Sent: Friday, December 07, 2001 7:20 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: The Santa

Santa Hole 3 (rev.pl) Post Mortem

2001-12-06 Thread Andrew . Savige
This is the hole that won it for Eugene. In fact, he was the only golfer to find a 13-stroke solution. As you might expect, just about everybody chose the obvious FAQ solution. I almost did not include this hole; I only put it in only because I was originally designing Santa's course for

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Piers Cawley
[EMAIL PROTECTED] writes: *** Eugene van der Pijll: 89 (11 19 13 25 21) *** --- rev.pl - #!/usr/bin/perl -p $\=$_.$\}{ That's just *beautiful*. I just couldn't see past 'print reverse'. -- Piers It is a truth universally acknowledged that a

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Karsten Sperling
*** Eugene van der Pijll: 89 (11 19 13 25 21) *** --- rev.pl - #!/usr/bin/perl -p $\=$_.$\}{ That's just *beautiful*. I just couldn't see past 'print reverse'. I've been wondering for hours now how he keeps $_ from being destroyed by the last

Santa Hole 1 (head.pl) Post Mortem

2001-12-06 Thread Andrew . Savige
We should call this Piers' hole :-). In one of the most generous gestures in the history of golf, he published his now infamous use.perl.org journal entry, effectively giving the whole field the best solution. But I will always remember this hole for his surreal: #!perl -p 11.. That said, Rick

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Piers Cawley
Karsten Sperling [EMAIL PROTECTED] writes: *** Eugene van der Pijll: 89 (11 19 13 25 21) *** --- rev.pl - #!/usr/bin/perl -p $\=$_.$\}{ That's just *beautiful*. I just couldn't see past 'print reverse'. I've been wondering for hours now how he

Santa Hole 2 (tail.pl) Post Mortem

2001-12-06 Thread Andrew . Savige
This hole was one by Ronald J Kimball with his first post in the opening hours of the game. It proved frustrating, as evidenced by Japhy's mid-game comment: Geez, I have three different solutions for tail.pl, ALL the same length (19 chars). Has someone gotten below 19? Japhy was able to go

Santa Hole 5 (wc.pl) Post Mortem

2001-12-06 Thread Andrew . Savige
This hole was one by Japhy with his first post in the opening hours of the game. Like hole 2, this proved very frustrating with all attempts to improve on printf failing. BooK, in particular, made repeated heroic attempts: My wc.pl is 21, but uses printf. I tried many things to get rid of

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Michael G Schwern
On Fri, Dec 07, 2001 at 10:01:05AM +1100, [EMAIL PROTECTED] wrote: --- mid.pl - #!/usr/bin/perl -p0 $_=$1while/.^(.+)^/ms Someone want to explain why this works? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Jeff 'japhy' Pinyan
On Dec 6, Piers Cawley said: [EMAIL PROTECTED] writes: *** Eugene van der Pijll: 89 (11 19 13 25 21) *** --- rev.pl - #!/usr/bin/perl -p $\=$_.$\}{ That's just *beautiful*. I just couldn't see past 'print reverse'. I tried that route for hours

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

2001-12-06 Thread Michael G Schwern
On Fri, Dec 07, 2001 at 10:36:50AM +1100, [EMAIL PROTECTED] wrote: --- Piers Cawley - 21 #!/usr/bin/perl -lp $#='%010g'}{$_=$. Shouldn't that be 20? -- Michael G. Schwern [EMAIL PROTECTED]http://www.pobox.com/~schwern/ Perl Quality Assurance [EMAIL

Santa Hole 4 (mid.pl) Post Mortem

2001-12-06 Thread Andrew . Savige
This hole, arguably the most interesting of the set, was won by Eugene with his first post in the opening hours of the game. He got off to a fast start because he had just analysed a similar problem from a previous fwp middle line thread (in fact, I blame Yanick for this golf game, and he blames

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Andrew . Savige
There were no leaderboard changes in the last hour, so I won't repost. I would like to congratulate Eugene for his brilliant victory and the worthy hole winners too: Ronald, Japhy and Rick. I would especially like to thank everyone for their encouragement and support and for the spirit that the

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Eugene van der Pijll
Jeff 'japhy' Pinyan schreef op 06 december 2001: On Dec 6, Piers Cawley said: [EMAIL PROTECTED] writes: *** Eugene van der Pijll: 89 (11 19 13 25 21) *** --- rev.pl - #!/usr/bin/perl -p $\=$_.$\}{ That's just *beautiful*. I just

Re: Santa Hole 1 (head.pl) Post Mortem

2001-12-06 Thread Jeff 'japhy' Pinyan
On Dec 6, [EMAIL PROTECTED] said: #!/usr/bin/perl -p $_ x=$.11 Can this one be explained please? (And can we keep explanations in the per-hole threads?) I was using this too, until I reached the age of reason. ;) I learned the trick from Larry Wall (indirectly). He had the $_ x= N trick in

It's Life, Jim.

2001-12-06 Thread ianb
Fun-havers, A while ago I posted this to perl-ai when the subject of game of life came up. Simon Cozens then alerted me to the existence of Lord Damian's SelfGOL, to which this program cannot be compared, but I thought it might still count as fun. Yours faithfully abusing the regex engine,

Re: The Santa Claus Golf Apocalypse

2001-12-06 Thread Philippe 'BooK' Bruhat
On Thu, 6 Dec 2001, Philip Newton wrote: On Tue, 4 Dec 2001 22:33:45 +0100 (CET), [EMAIL PROTECTED] (Philippe 'Book' Bruhat) wrote: it's straightforward Perl, as documented in Amelia What's Amelia? Amelia is the name Paris.pm people gave to Programming Perl, 3rd ed. Fido is the name of