From: Michael G. Schwern Date: Fri, 19 Nov 2004 14:28:56 +0000 (-0500) Subject: Re: [perl #32486] error in documentation for POSIX::pipe X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b27d06daa636fd86e1cd11a66e74207401300221;p=p5sagit%2Fp5-mst-13.2.git Re: [perl #32486] error in documentation for POSIX::pipe Message-ID: <20041119192856.GA4769@windhund.schwern.org> p4raw-id: //depot/perl@23527 --- diff --git a/ext/POSIX/POSIX.pod b/ext/POSIX/POSIX.pod index e7e0ad3..d7fa8f3 100644 --- a/ext/POSIX/POSIX.pod +++ b/ext/POSIX/POSIX.pod @@ -955,9 +955,9 @@ variable instead, see L and L. Create an interprocess channel. This returns file descriptors like those returned by C. - ($fd0, $fd1) = POSIX::pipe(); - POSIX::write( $fd1, "hello", 5 ); - POSIX::read( $fd0, $buf, 5 ); + my ($read, $write) = POSIX::pipe(); + POSIX::write( $write, "hello", 5 ); + POSIX::read( $read, $buf, 5 ); See also L.