This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11e0918
)
Re: [perl #32486] error in documentation for POSIX::pipe
author
Michael G. Schwern
<schwern@pobox.com>
Fri, 19 Nov 2004 14:28:56 +0000
(09:28 -0500)
committer
Rafael Garcia-Suarez
<rgarciasuarez@gmail.com>
Tue, 23 Nov 2004 10:20:02 +0000
(10:20 +0000)
Message-ID: <
20041119192856
.GA4769@windhund.schwern.org>
p4raw-id: //depot/perl@23527
ext/POSIX/POSIX.pod
patch
|
blob
|
blame
|
history
diff --git
a/ext/POSIX/POSIX.pod
b/ext/POSIX/POSIX.pod
index
e7e0ad3
..
d7fa8f3
100644
(file)
--- a/
ext/POSIX/POSIX.pod
+++ b/
ext/POSIX/POSIX.pod
@@
-955,9
+955,9
@@
variable instead, see L<perlfunc/warn> and L<perlvar/$ERRNO>.
Create an interprocess channel. This returns file descriptors like those
returned by C<POSIX::open>.
-
($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<perlfunc/pipe>.