|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: (Golf) Let's go bowlingby rchiav (Deacon) |
| on Aug 09, 2001 at 01:41 UTC ( #103247=note: print w/ replies, xml ) | Need Help?? |
|
Well this is my first golf, and I was pretty proud of it until I saw tilly's post. But then again, when doesn't he have the lowest score? :) Anyway.. I'm sure this can be improved.. I'm not sure on the counting rules, but if it's everything inside the sub, not counting whitespace, it's 150 update: original was missing the pound symbol on the first line.. nothing to do with the sub.. just mised it in the copy-n-paste. Also, put the exact array from the example in case someone thought it was giving the wrong answer
update II
The sub inluding nesisairy whitespace is now 150..
update III same principle, just trimming it down..removed while loop and if statements.. 131 yet anotherupdate IV: Got it down to 123. But as Tilly pointed out, it doesn't look like this runs on 5.005_03.. so I don't know what it's worth then. I have since tested this and it works on AIX with perl 5.005_03 -Rich
In Section
Meditations
|
|
||||||||||||||||||||||||||||||||