Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: PGA Golf, Round 1

by mr.nick (Chaplain)
on May 24, 2001 at 21:15 UTC ( #83007=note: print w/replies, xml ) Need Help??

in reply to PGA Golf, Round 1

Okay: here are my entries. They aren't particularly good, but they work which is fine for me.

Hole 1 - 21 chars

(split/[^\w_]/,pop)[4] 1234567890123456789001
Hole 2 - 24 chars
perl -e'\ \ \ \ goto TPC'
Hole 4 - 31 chars
map{chr(hex)}unpack("A2"x11,pop) 1234567890123456789012345678901
Hole 5 - 32 chars
$x=shift;map{$x=$_ if$_<$x}@_;$x 12345678901234567890123456789012
Hole 6 - 53 chars (ugh!)
sort{($a=~/([aeoui])/)[0]cmp($b=~/([aeiou])/)[0]}@_} 1234567890123456789012345678901234567890123456890123

Replies are listed 'Best First'.
Re: Re: PGA Golf, Round 1
by suaveant (Parson) on May 24, 2001 at 23:17 UTC
    I feel so smart... I actually pulled an obscure thing of my own... in perl // redoes the previous re, so
    sub hole{sort{($a=~/([aeiou])/)[0]cmp($b=~//)[0]}@_} 123456789_123456789_123456789_123456789_12
    cuts your hole 6 to 42 chars! my small moment of glory...

    Update realized I counted } in sub... actually 42 chars.. not 43...
                    - Ant

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://83007]
[1nickt]: erix unfortunately that's there favourite spot. That's why they are usually spotted crawling *up* your leg.
[erix]: ha, the tick and, as it happens, also the curator (now a professor of Paleont.)
[1nickt]: s/there/their/, ugh sorry.
[Your Mother]: Heh. The only one I ever had on me, I caught on my shin, headed north.
erix looks nervously I got away cleanly from my run , it seems :)
1nickt doesn;t remember there being ticks in the old country ...
erix too fast for ticks!
[erix]: 'the old country' is where?
[erix]: that means britain for americans, is that right?
[perldigious]: We need to get more high tech about pest defense to prevent tick and mosquito problems. :-)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (15)
As of 2017-05-24 13:18 GMT
Find Nodes?
    Voting Booth?