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
In reply to Re: IO::Socket:INET doesn't attempt to connect
by Zaxo
in thread IO::Socket:INET doesn't attempt to connect
by BrowserUk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |