Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: PGA Golf, Round 1

by iamcal (Friar)
on May 25, 2001 at 12:00 UTC ( #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

Comment on Re: PGA Golf, Round 1
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-11-25 06:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (671 votes), past polls