Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

RE: RE: RE: RE: Re: gethostbyname bug?

by Nooks (Monk)
on Sep 12, 2000 at 02:58 UTC ( [id://32014]=note: print w/replies, xml ) Need Help??


in reply to RE: RE: RE: Re: gethostbyname bug?
in thread gethostbyname bug?

geektron wrote:
actually, i wasn't. the code i posted was what i was using. i completely understand what the extra parens would have done (forcing list context, then the first element of that list would be returned).

Fine, if you say that's what you were using, that's what you were using. I suggested it because you displayed a bit of uncertainty about what parens did in one of the first answers, because it explained exactly what you'd been seeing, and because I've seen other Perl hackers make the same mistake, and have made it myself.

Do you have a better suggestion for the behaviour you saw?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (3)
As of 2024-04-16 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found