> Peter Scott wrote:
>> I believe it's a bug; I was only able to get around it by putting a
>> null character after the // on the first line.  This gives away part
>> of my solution to gs.pl but since I'm nowhere near the lead so what :-)
> 
Andrew Savige wrote:
> Yes it is a bug. I am told it is fixed in latest bleadperl.

[EMAIL PROTECTED] wrote:
> Should you ? Normally golf is played including the bugs (you fixed
> the version as 5.6.1, so its a level playing field). Especially since
> it's also very well possible that the implied extra \n gives the
> advantage.

I am not changing the version nor am I changing the test program.
All programs must still pass the test program when run under 5.6.1
and their golf score is what is reported by the test program which
will include one for the null workaround hack.

Anyway, for the people who cannot stop playing golf, here is the
original adjust.pl with a golf score of 22:
#!/usr/bin/perl -lp
$.==1 and $_.="\0"

And here is my entry with an improved golf score of 16. :)
#!/usr/bin/perl -lp
$.-1or$_.=v0

/-\ndrew.

Reply via email to