Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: PGA Golf, Round 1

by iamcal (Friar)
on May 25, 2001 at 12:00 UTC ( [id://83252]=note: print w/replies, xml ) Need Help??


in reply to PGA Golf, Round 1

sub hole_one{(pop=~/\w+/g)[4]} #16 characters hole two: perl -e "print STDERR 'Can\'t find label TPC at -e line 5.'" #60 characters (using tachyon's method) sub hole_three{pop=~/^(.*?)\1+$/s} #18 characters (handles carriage returns in the input) sub hole_four{map{chr hex}(pop=~/(..)/g)} #26 characters sub hole_five{$a=pop;(grep{$a=$_ if $_>$a}@_)[-1]} #35 characters (updated for negetive numbers) sub hole_six{sort{($a=~/([aeiou])/)[0]cmp($b=~//)[0]}@_} #42 characters

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://83252]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2024-03-28 19:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found