diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 47958b285174..fc4be4ecf63b 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -7299,6 +7299,10 @@ An example disabling Nagle's algorithm on a socket: use Socket qw(IPPROTO_TCP TCP_NODELAY); setsockopt($socket, IPPROTO_TCP, TCP_NODELAY, 1); +Beware: If a variable is supplied for OPTVAL and that variable has +been used as a string, setsockopt() might treat it as a packed string +instead of as an integer. + Portability issues: L. =item shift ARRAY