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:
17bede5
)
Document SIGPIPE when printing to closed socket
author
David Golden
<dagolden@cpan.org>
Mon, 16 Nov 2009 16:26:53 +0000
(11:26 -0500)
committer
David Golden
<dagolden@cpan.org>
Mon, 16 Nov 2009 16:26:53 +0000
(11:26 -0500)
pod/perlfunc.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perlfunc.pod
b/pod/perlfunc.pod
index
53c318f
..
bacf296
100644
(file)
--- a/
pod/perlfunc.pod
+++ b/
pod/perlfunc.pod
@@
-4197,6
+4197,9
@@
you will have to use a block returning the filehandle value instead:
print { $files[$i] } "stuff\n";
print { $OK ? STDOUT : STDERR } "stuff\n";
+Printing to a closed pipe or socket will generate a SIGPIPE signal. See
+L<perlipc> for more on signal handling.
+
=item printf FILEHANDLE FORMAT, LIST
X<printf>