From: Andreas König <a.koenig@mind.de> Date: Fri, 2 Nov 2001 06:11:35 +0000 (+0100) Subject: Trivial doc patch X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a81e5e2ecfdba68742ad72b753ace2dd711691b5;p=p5sagit%2Fp5-mst-13.2.git Trivial doc patch Message-ID: <m37kt94v08.fsf@anima.de> p4raw-id: //depot/perl@12805 --- diff --git a/pod/perlport.pod b/pod/perlport.pod index 8e94e22..287eaf5 100644 --- a/pod/perlport.pod +++ b/pod/perlport.pod @@ -423,13 +423,13 @@ simple, platform-independent mailing. The Unix System V IPC (C<msg*(), sem*(), shm*()>) is not available even on all Unix platforms. -Do not use either the bare result of C<pack("N", 10, 20, 30, 40)> -or bare v-strings (such as C<v10.20.30.40>) or to represent -IPv4 addresses: both forms just pack the four bytes into network order. -That this would be equal to the C language C<in_addr> struct (which is -what the socket code internally uses) is not guaranteed. To be -portable use the routines of the Socket extension, such as -C<inet_aton()>, C<inet_ntoa()>, and C<sockaddr_in()>. +Do not use either the bare result of C<pack("N", 10, 20, 30, 40)> or +bare v-strings (such as C<v10.20.30.40>) to represent IPv4 addresses: +both forms just pack the four bytes into network order. That this +would be equal to the C language C<in_addr> struct (which is what the +socket code internally uses) is not guaranteed. To be portable use +the routines of the Socket extension, such as C<inet_aton()>, +C<inet_ntoa()>, and C<sockaddr_in()>. The rule of thumb for portable code is: Do it all in portable Perl, or use a module (that may internally implement it with platform-specific