summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-08-30 18:55:46 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-08-30 18:55:46 +0000
commit25379e5350780d6ec10e06421258c89ca676cc4f (patch)
tree55e48fa486b8a25a7ff662775536e38d73f4918a /pod
parentb2b4ec814a5af6e0a2f7557c1a67c4b86af2f630 (diff)
downloadperl-25379e5350780d6ec10e06421258c89ca676cc4f.tar.gz
Clarify the cases where system() returns 1,
per a suggestion of Rick Delaney (bug #36976) p4raw-id: //depot/perl@25339
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod7
1 files changed, 4 insertions, 3 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index 63fba1d6cc..09d98b0be1 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -6012,11 +6012,12 @@ to set C<$|> ($AUTOFLUSH in English) or call the C<autoflush()> method
of C<IO::Handle> on any open handles.
The return value is the exit status of the program as returned by the
-C<wait> call. To get the actual exit value, shift right by eight (see below).
-See also L</exec>. This is I<not> what you want to use to capture
+C<wait> call. To get the actual exit value, shift right by eight (see
+below). See also L</exec>. This is I<not> what you want to use to capture
the output from a command, for that you should use merely backticks or
C<qx//>, as described in L<perlop/"`STRING`">. Return value of -1
-indicates a failure to start the program (inspect $! for the reason).
+indicates a failure to start the program or an error of the wait(2) system
+call (inspect $! for the reason).
Like C<exec>, C<system> allows you to lie to a program about its name if
you use the C<system PROGRAM LIST> syntax. Again, see L</exec>.