This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Document SIGPIPE when printing to closed socket
authorDavid Golden <dagolden@cpan.org>
Mon, 16 Nov 2009 16:26:53 +0000 (11:26 -0500)
committerDavid Golden <dagolden@cpan.org>
Mon, 16 Nov 2009 16:26:53 +0000 (11:26 -0500)
pod/perlfunc.pod

index 53c318f..bacf296 100644 (file)
@@ -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>