NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Anyone tackled the golf puzzle yet? (Score:1)
Jason
Re:Anyone tackled the golf puzzle yet? (Score:1)
$_=shift;if(m/\d/){print;}else{print ord()-55;}
There is probably something wrong in there, and there is no checking of the input, but it is a fairly simple solution. I think I need to subscriber to the FWP list.
Re:Anyone tackled the golf puzzle yet? (Score:1)
$_=pop;print(/\d/?$_:-55+ord)
Jason
Reply to This
Parent