LA.pm: Golf Challenge Test Program

Samy Kamkar SKamkar at LucidX.com
Sat Mar 16 15:40:49 CST 2002


Here's a test program you can use to test 'your' program to make sure it 
works correctly.
It's available at http://la.pm.org/golf/testgc1.pl

Just stick in the directory where your program is and run:
`perl testgc1.pl`
(be sure to rename/copy your progarm to 'gc1.pl'

Also make sure you have a shebang in your code (#! line)
Include any options you want on that line, e.g.:
#!/usr/bin/perl -X
...code...

Only the options in the shebang will add to your golf score.  The last 
newline in your code and newline on the shebang line also do not count.

Update on my code -- now at 137 bytes + 1 commandline option :)

-- 
Samy Kamkar Pezeshkian -- cp5 at LucidX.com
LucidX.com / code.LucidX.com / LA.pm.org




More information about the Losangeles-pm mailing list