in reply to Bad arg length for Socket::unpack_sockaddr_in, length is 0, should be 16 at Socket.pm line 780
Could you please help to identify the issue here?
You're not error checking ("or die...")
:) Why not use something slightly higher up the food chain, say IO::Socket, then you can
=head2 $addr = $sock->peerhost Return the numeric form of the peer address as a textual representatio +n =head2 $port = $sock->peerport Return the numeric form of the peer port number
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Bad arg length for Socket::unpack_sockaddr_in, length is 0, should be 16 at Socket.pm line 780
by jobinjoseph121 (Novice) on Sep 10, 2015 at 07:26 UTC | |
by Anonymous Monk on Sep 10, 2015 at 08:05 UTC |