in reply to IO::Socket:INET doesn't attempt to connect
This statement:
doesn't do what you want. &IO::Socket::INET::new does not work with or die $!. It returns a (true) reference to a Symbol whether or not the socket's connection was established. You may want to check defined( $socket->connected()), inherited from IO::Socket.my $socket = IO::Socket::INET->new(%socket) or die $!;
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: IO::Socket:INET doesn't attempt to connect
by BrowserUk (Patriarch) on Apr 24, 2003 at 06:01 UTC |