![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: PGA Golf, Round 1by tadman (Prior) |
on May 25, 2001 at 16:11 UTC ( [id://83272]=note: print w/replies, xml ) | Need Help?? |
My submissions: Hole 1 (16 characters) Hole 2 (31 characters) perl -e# -e# -e# -e# -egoto+TPC Hole 3 (46 characters) If only alphanumeric data will be processed: If required to support non-alpha, or unusual characters in the input data (requires \Q...\E), then 51 characters: Hole 4 (24 characters) Hole 5 (30 characters) Hole 6 (39 characters) Update: Corrected hole 4 (returned string, wanted list). Reduced hole 6 (@x=@_ to @_, used $& instead of memorizing) Removed first 'version' of hole #5, which didn't handle negative numbers, leaving the longer second version.
In Section
Meditations
|
|