in reply to Re^2: IO::Socket->recv() method documentation?
in thread IO::Socket->recv() method documentation?

Is that a scalar, an array, a hash or some kind of object?

A packed string/structure. Socket and thus IO::Socket provides tools.

use Socket qw( sockaddr_in inet_ntoa ); my ($port, $packed_addr) = sockaddr_in($peer); my $addr = inet_ntoa($packed_addr);

This answer is specific to IPv4.

What is bind? As an IO::Socket user, I've never had to bind anything.

You'd know it as LocalPort.

Replies are listed 'Best First'.
Re^4: IO::Socket->recv() method documentation?
by BrowserUk (Patriarch) on Apr 07, 2011 at 20:35 UTC

    Have you heard the term: devil's advocate?

      Yes. Are you saying you are playing the devil's advocate (trying to show that the code should behave unintuitively by taking the opposite position)? That makes no sense to me.