Beefy Boxes and Bandwidth Generously Provided by pair Networks httptech
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re (tilly) 2: PGA Golf, Round 1 - Results

by tilly (Archbishop)
on May 31, 2001 at 22:42 UTC ( [id://84778]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: PGA Golf, Round 1 - Results
in thread PGA Golf, Round 1 - Results

Agreed. 22 is the best that I have.

For a bit I mistakenly thought I had a 20 char solution in the form of:

sub hole{map/^(.*?)\1+\z/s,@_}
but the rules say that if a single thing is returned, then it will be in scalar context. In scalar context this solution is wrong (as I indicated in an "oops" update).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://84778]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.