From: Rafael Garcia-Suarez Date: Tue, 27 Jan 2004 21:19:03 +0000 (+0000) Subject: More punctuation, good. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=dede81231bb6ec127910ed7dddb6f1aeb0cf28da;p=p5sagit%2Fp5-mst-13.2.git More punctuation, good. p4raw-id: //depot/perl@22235 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 5e4631b..f3a0adf 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -770,10 +770,10 @@ another C on it, because C will close it for you. (See C.) However, an explicit C on an input file resets the line counter (C<$.>), while the implicit close done by C does not. -If the file handle came from a piped open C will additionally -return false if one of the other system calls involved fails or if the +If the file handle came from a piped open, C will additionally +return false if one of the other system calls involved fails, or if the program exits with non-zero status. (If the only problem was that the -program exited non-zero C<$!> will be set to C<0>.) Closing a pipe +program exited non-zero, C<$!> will be set to C<0>.) Closing a pipe also waits for the process executing on the pipe to complete, in case you want to look at the output of the pipe afterwards, and implicitly puts the exit status value of that command into C<$?>.