in reply to Re^2: Bad arg length for Socket::unpack_sockaddr_in, length is 0, should be 16 at Socket.pm line 780
in thread Bad arg length for Socket::unpack_sockaddr_in, length is 0, should be 16 at Socket.pm line 780

Unfortunately i can not switch to IO::Socket but had to go with Socket option only. Can you please suggest any method to correct this issue?

:) IO::Socket is a core module just like Socket -- you can use both

At the very least try using IO::Socket to see if you can make it work ... then work back to see if you can figure out where you go wrong

  • Comment on Re^3: Bad arg length for Socket::unpack_sockaddr_in, length is 0, should be 16 at Socket.pm line 780