Re: TPR0 Final Results

2002-02-16 Thread Andrew . Savige
Andrew Savige wrote: #!/usr/bin/perl -l use POSIX;print strtol pop,36 I think this should work, but it prints a spurious trailing zero. Ronald J Kimball wrote: RTFM. strtol String to (long) integer translation. Returns the parsed number and the number of

Re: TPR0 Final Results

2002-02-16 Thread F . Xavier Noria
On Sat, 16 Feb 2002 11:10:41 +1100 [EMAIL PROTECTED] wrote: : Stephen Turner wrote: : Can someone explain to me why : : -l use POSIX;print strtol pop,36 : : doesn't work? Where does the extra 0 come from? : Maybe Perl golf is useful, after all -- as a QA tool to find : Perl bugs. :)

Re: TPR0 Final Results

2002-02-16 Thread F . Xavier Noria
On Sat, 16 Feb 2002 00:40:35 +0100 Bart Lateur [EMAIL PROTECTED] wrote: : On Fri, 15 Feb 2002 08:53:45 -0600, Dave Hoover wrote: : : Here is the winning solution: : : #!perl -l : use POSIX;print~~strtol pop,36 : : Boo, boo! : : What an anti-climax. Utterly boring. Maybe being a

Re: TPR0 Final Results

2002-02-16 Thread Bart Lateur
On Sat, 16 Feb 2002 11:10:17 +0100, F. Xavier Noria wrote: : What an anti-climax. Utterly boring. Maybe being a mathematician I am a bit formalist, but the challenge was to use as few strokes as possible, if you didn't use strtol you lost. If you didn't want to use strtol as an option you are

RE: TPR0 Final Results

2002-02-16 Thread Andrew . Savige
On Sat, 16 Feb 2002 11:10:17 +0100, F. Xavier Noria wrote: : What an anti-climax. Utterly boring. Maybe being a mathematician I am a bit formalist, but the challenge was to use as few strokes as possible, if you didn't use strtol you lost. If you didn't want to use strtol as an option you are

Re: TPR0 Final Results

2002-02-16 Thread F . Xavier Noria
On Sat, 16 Feb 2002 11:28:51 +0100 Bart Lateur [EMAIL PROTECTED] wrote: : On Sat, 16 Feb 2002 11:10:17 +0100, F. Xavier Noria wrote: : : : What an anti-climax. Utterly boring. : : Maybe being a mathematician I am a bit formalist, but the challenge was : to use as few strokes as possible, if

Re: TPR0 Final Results

2002-02-16 Thread F . Xavier Noria
On Sat, 16 Feb 2002 00:40:35 +0100 Bart Lateur [EMAIL PROTECTED] wrote: : On Fri, 15 Feb 2002 08:53:45 -0600, Dave Hoover wrote: : : Here is the winning solution: : : #!perl -l : use POSIX;print~~strtol pop,36 : : Boo, boo! : : What an anti-climax. Utterly boring. Maybe being a

Re: TPR0 Final Results

2002-02-16 Thread Ton Hospel
In article [EMAIL PROTECTED], [EMAIL PROTECTED] writes: I have been involved in all 4 tournaments in the current series (Santa, Ton, Get Even, TPR). So has Ton Hospel, and I would be interested in hearing his opinion, as he produced both a 33-stroker and a 47-stroker in this game.

Explanation of my 7918-stroke Perl Bowling entry

2002-02-16 Thread Andrew . Savige
Thankyou to Dave and Jerome for running the game and for their invitation to explain some of my weird entries. The fwp old-hands may have yawned at my 7918-stroke entry, but I hope it caused at least a few fwp newbies to remark What the hell is that? or How the hell does that work?. Let me

Re: TPR0 Final Results

2002-02-16 Thread Stephen Turner
On Fri, 15 Feb 2002, F.Xavier Noria wrote: Aha, is documented in perldiag: Too late for -%s option (X) The #! line (or local equivalent) in a Perl script contains the -M or -m option. This is an error because -M and -m options are not intended for

RE: Explanation of my 7918-stroke Perl Bowling entry

2002-02-16 Thread Andrew . Savige
Stephen Turner wrote: Thanks for the explanation, Andrew. I'm interested to know how you made the picture of Eugene during your golf competition. I found the original photo, but how do you turn that into a line drawing to work your magic on? Do you have to do it by hand? For that photo, I

RE: TPR0 Final Results

2002-02-16 Thread Andrew . Savige
Stephen Turner wrote: In that case, I think there should be a separate leaderboard for people who didn't use strtol. Just so that I could be only one stroke off the lead, you understand. :-) 2002/02/11 19:52:29 - 46 - Karsten aka Spifff map$.=36*$.-55+/\d/*7+ord,pop=~/./g;print$..$/

RE: Explanation of my 7918-stroke Perl Bowling entry

2002-02-16 Thread Stephen Turner
On Sat, 16 Feb 2002 [EMAIL PROTECTED] wrote: after auto-conversion, I manually touched it up by tracing Eugene's head onto a piece of plastic and sticky-taping it to the screen! This has got to be the funniest-with-Perl story I have ever heard. -- Stephen Turner, Cambridge, UK

RE: TPR0 Final Results

2002-02-16 Thread Stephen Turner
On Sun, 17 Feb 2002 [EMAIL PROTECTED] wrote: Oh deary me, Stephen, you beat Spiff by two hours but forgot that map{$expr}list could be shortened to map$expr,list. And, in the last game, you forgot that for could go at the end. I know, I know. I need more practice. -- Stephen Turner,

Re: TPR0 Final Results

2002-02-16 Thread Jerome Quelin
On Samedi 16 FĂ©vrier 2002 14:37, Stephen Turner wrote : On Sun, 17 Feb 2002 [EMAIL PROTECTED] wrote: Oh deary me, Stephen, you beat Spiff by two hours but forgot that map{$expr}list could be shortened to map$expr,list. And, in the last game, you forgot that for could go at the end. I

Re: TPR0 Final Results

2002-02-16 Thread Bill -OSX- Jones
On Friday, February 15, 2002, at 06:47 PM, Stephen Turner wrote: #!perl -l use POSIX;print~~strtol pop,36 Well, I repeat my challenge. Can anyone beat Karsten's 46 without using POSIX? Hmm, maybe not... I can get to 55 or so... But here is an expanded solution - #!perl while (DATA) {

Re: TPR0 Final Results

2002-02-16 Thread Stephen Turner
On Sat, 16 Feb 2002, Jerome Quelin wrote: Then you'll be able to practice soon: next tournament for tpr1 begins march the 1st [...] This may be too soon, but we are to stick with tpr issues. We hope that you'll submit anyway. The sooner the better! -- Stephen Turner, Cambridge, UK

Fwd: Re: interesting typo I couldn't see

2002-02-16 Thread Vicki Brown
It took me a while to find the problem... when I did I was somewhat amused --- Begin Forward --- if (...) { my @item_parts = split(/\n/, $item); printf ORDER (\n%4d %-50s %3.2f %3.2f\n, $quantity, $item_parts[0],

RC4 182 bytes

2002-02-16 Thread Samy Kamkar
Hi everyone! Uri just pointed me out to this list today and I'm glad he did :) Well, I'd like to know if any of you are able to shorten this, I spent a few minutes last night and this morning shortening it to 182 bytes and I'm not sure what else can be done to it but I'm sure many of you here

Re: Fwd: Re: interesting typo I couldn't see

2002-02-16 Thread John W. Krahn
Vicki Brown wrote: It took me a while to find the problem... when I did I was somewhat amused --- Begin Forward --- if (...) { my @item_parts = split(/\n/, $item); printf ORDER (\n%4d %-50s %3.2f %3.2f\n,

Explanation of my 189-stroke Perl-is-C;C-is-Perl entry

2002-02-16 Thread Andrew . Savige
Though singled out for submitting a whopping 9 entries, I could not help but notice that specialist obfuscator BooK submitted more. Luckily for me, however, he did not find the strtol hack, for he would surely have tried for a T-shirt by producing a C is Perl entry, just as he did in the 4th

Re: Fwd: Re: interesting typo I couldn't see

2002-02-16 Thread Philip Newton
On Sat, 16 Feb 2002 11:05:14 -0800, [EMAIL PROTECTED] (Vicki Brown) wrote: It took me a while to find the problem... when I did I was somewhat amused --- Begin Forward --- if (...) { my @item_parts = split(/\n/, $item); printf ORDER (\n%4d