Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: PGA Golf, Round 1

by btrott (Parson)
on May 24, 2001 at 21:37 UTC ( [id://83015]=note: print w/replies, xml ) Need Help??


in reply to PGA Golf, Round 1

Here's my Hole 4, though I feel as if I must be missing something obvious, either incorrect in my answer or a different solution.
sub h2c{split//,pack"H*",pop} 123456789_123456789_
20 characters.

Update: I realize now that the answer is incorrect because it returns a string rather than a list. Thanks all. :)

Update again: Fixed the answer by adding the split.

Replies are listed 'Best First'.
Re (tilly) 2: PGA Golf, Round 1
by tilly (Archbishop) on May 24, 2001 at 21:43 UTC
    It must be a list of characters.
    sub hole{split//,pack"H*",@_}
    is optimal (I believe).
Re: Re: PGA Golf, Round 1
by ChemBoy (Priest) on May 24, 2001 at 21:58 UTC
    Incorrect in your answer: you need to return a list of characters, not a string.



    If God had meant us to fly, he would *never* have give us the railroads.
        --Michael Flanders

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2025-06-22 04:50 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.