Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 wandering the Monastery: (5)
As of 2025-06-15 10:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.