Keep It Simple, Stupid | |
PerlMonks |
RE: RE: Re: gethostbyname bug?by Nooks (Monk) |
on Sep 11, 2000 at 02:46 UTC ( [id://31821]=note: print w/replies, xml ) | Need Help?? |
You were probably doing something like this:
In that code, $ip is in a list, and the statement is in list context, so the statement is equivalent to:
which will put the name in returned from gethostbyname in $ip. Aside: This is the reason I rail against unnecessary parenthisation in perl programs---there can be nasty context bugs until you get used to it.
In Section
Seekers of Perl Wisdom
|
|