Name

recv

Synopsis

recv socket, $var, len, flags
                  

Receives a message on a socket. It attempts to receive len bytes of data into variable var from the specified socket filehandle. The function returns the address of the sender, or the undefined value if there’s an error. varwill grow or shrink to the length actually read. The function takes the same flags as the recv(2) system call.

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.