AFAIK, IO::Socket::INET->new() does not set $!,
Quite the opposite. It's the only module I know that does set $! even for errors not originating from system calls. That could account for the error message mismatch.
In reply to Re^2: Could not create socket: Bad file number
by ikegami
in thread Could not create socket: Bad file number
by perlofwisdom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |