go ahead... be a heretic | |
PerlMonks |
Re: PGA Golf, Round 1by the_slycer (Chaplain) |
on May 24, 2001 at 22:24 UTC ( [id://83046]=note: print w/replies, xml ) | Need Help?? |
Well, not fully complete - missing 3 and 6, maybe I'll update those later (I have to actually work now). Here are my attempts. First time golfing :-) Hole #1 (score 10): sub b{(split)[4]} Hole #2 (score 21): perl -e' goto TPC ' Hole #4 (score 47): sub b{$_=reverse;push@_,chr(hex(chop.chop))while$_;@_} Hole #5 (score 32): sub b{$t=pop;for(@_){$t=$_ if$_>$t}$t} Update: Thanks tilly, I would never have noticed hole 5 - though I had some bad feelings about it. I don't know WHAT I was thinking for #1 :-) update2: changed 5 to a working one now :-)
In Section
Meditations
|
|