"Note that a socket which fails to connect does not return a false value."
This is definitely wrong, otherwise why the following worked for me:
use IO::Socket::INET; use strict; use warnings; IO::Socket::INET->new(Proto => "tcp", PeerAddr => "123.123.123.123", P +eerPort => 123, Timeout => 10) || die "failed to connect";
If whatever before 'or' was not evaluated to false, why should the die get evaluated, and print the message on screen for me?
In reply to Re^2: Using IO::Socket
by pg
in thread Using IO::Socket
by Earindil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |