in reply to Re: Unknown Socket error (0+$!)
in thread Unknown Socket error

then look up the error number to find what the problem is

Would using $^E work?

Replies are listed 'Best First'.
Re^3: Unknown Socket error (!$^E)
by tye (Sage) on Jan 26, 2009 at 21:06 UTC

    No, winsock errors are not covered by GetLastError() nor errno/strerror(). I've never even seen a "look up text based on error code" function for winsock errors (you can read winsock.h or STFW, of course).

    - tye