diff options
-rw-r--r-- | ext/IO/lib/IO/Socket.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/IO/lib/IO/Socket.pm b/ext/IO/lib/IO/Socket.pm index 4197eaa3c1..53c2ff66a7 100644 --- a/ext/IO/lib/IO/Socket.pm +++ b/ext/IO/lib/IO/Socket.pm @@ -116,7 +116,7 @@ sub connect { $@ = "connect: timeout"; } elsif(!connect($sock,$addr)) { - if (exists &Errno::EISCONN && ($! == &Errno::EISCONN)) { + if ($!{EISCONN}) { # Some systems (e.g. Digital UNIX/Tru64) fail to # re-connect() to an already open socket and set # errno to EISCONN (Socket is already connected) |