New golf "spiral"

2003-01-21 Thread Terje Kristensen
Hi all, First, thanks to all who played the "LED" display golf and congratulations to the winners ton and mtve and tybalt for their great solutions. The new golf course "spiral" is now open. The problem is straight forward, but the solutions migh be long :) Hope to see you there. Terje K

Perl vs. C?

2003-01-21 Thread Ian Phillipps
The following was distributed a while ago as "footguy.c". Can any golfers duplicate its function in perl using fewer characters? There are a couple of literal ^G in here: main(l){main(8^putchar(l++["xx77Rd$fR$wPP"]^88)?l:26+fflush(sleep(1))-l);} In case you can't get this to work, it displays

Re: Perl vs. C?

2003-01-21 Thread Yanick
On Wed, Jan 22, 2003 at 12:08:23AM +, Ian Phillipps wrote: > The following was distributed a while ago as "footguy.c". > Can any golfers duplicate its function in perl using fewer characters? > > There are a couple of literal ^G in here: > > main(l){main(8^putchar(l++["xx77Rd$fR$wPP"]^88)?l

Re: Perl vs. C?

2003-01-21 Thread Yanick
On Tue, Jan 21, 2003 at 09:39:18PM -0500, Yanick wrote: > On Wed, Jan 22, 2003 at 12:08:23AM +, Ian Phillipps wrote: > > The following was distributed a while ago as "footguy.c". > > Can any golfers duplicate its function in perl using fewer characters? > > > > There are a couple of literal ^G

Re: Perl vs. C?

2003-01-21 Thread Yanick
On Tue, Jan 21, 2003 at 09:48:51PM -0500, Yanick wrote: > On Tue, Jan 21, 2003 at 09:39:18PM -0500, Yanick wrote: > > On Wed, Jan 22, 2003 at 12:08:23AM +, Ian Phillipps wrote: > > > The following was distributed a while ago as "footguy.c". > > > Can any golfers duplicate its function in perl u

Re: Perl vs. C?

2003-01-21 Thread Rick Klement
Ian Phillipps wrote: > > The following was distributed a while ago as "footguy.c". > Can any golfers duplicate its function in perl using fewer characters? > > main(l){main(8^putchar(l++["xx77Rd$fR$wPP"]^88)?l:26+fflush(sleep(1))-l);} > How about: perl -e's//_\b/;$_^=p while sleep print" o