in reply to IO::Socket not connecting

or die( "Cannot connect to $host:$port : $@\n" );
That should be $!, not $@

Dave.

Replies are listed 'Best First'.
Re^2: IO::Socket not connecting
by Anonymous Monk on Nov 21, 2004 at 16:18 UTC
    Thanks, I changed that and it says what it did before along with: - Unknown error
      I bet you're on Windows, then. Try printing $^E. $! prints 'unknown error' when there isn't a UNIX equivalent for the Windows error message found in $^E.