in reply to Problem in IO::Socket syntax?
I couldn't find IO::Socket's return value when failing in it's documentation, but that it calls connect(), and this returns false when failing. I can't imagine that it (IO::Socket) would return a socket even when failing to open one, so my guess is that this is your mistake. I don't use IO::Socket all that often, so I might be wrong here.. Hope this helps ;)if ($disco) { print "$host FAILED to respond on $service $ports{$service}\n"; } else { close $checkport; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: Problem in IO::Socket syntax?
by tye (Sage) on Mar 31, 2002 at 06:59 UTC |