summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-08-17 22:38:16 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-17 22:38:16 +0000
commit43dd4d2146112dca2aa15fc1e2f00ffa207319c5 (patch)
treec7d054274112a1c540cccba1f6ad2a931e76a0aa /pod
parent01f4840e0b23322a2013fbc287c38f7b8e6684f4 (diff)
downloadperl-43dd4d2146112dca2aa15fc1e2f00ffa207319c5.tar.gz
Document what the backtick returns if the command fails.
p4raw-id: //depot/perl@6682
Diffstat (limited to 'pod')
-rw-r--r--pod/perlop.pod15
1 files changed, 8 insertions, 7 deletions
diff --git a/pod/perlop.pod b/pod/perlop.pod
index 0f83ed17b7..9b4dbafa19 100644
--- a/pod/perlop.pod
+++ b/pod/perlop.pod
@@ -997,13 +997,14 @@ for a detailed look at the semantics of regular expressions.
=item `STRING`
-A string which is (possibly) interpolated and then executed as a system
-command with C</bin/sh> or its equivalent. Shell wildcards, pipes,
-and redirections will be honored. The collected standard output of the
-command is returned; standard error is unaffected. In scalar context,
-it comes back as a single (potentially multi-line) string. In list
-context, returns a list of lines (however you've defined lines with $/
-or $INPUT_RECORD_SEPARATOR).
+A string which is (possibly) interpolated and then executed as a
+system command with C</bin/sh> or its equivalent. Shell wildcards,
+pipes, and redirections will be honored. The collected standard
+output of the command is returned; standard error is unaffected. In
+scalar context, it comes back as a single (potentially multi-line)
+string, or undef if the command failed. In list context, returns a
+list of lines (however you've defined lines with $/ or
+$INPUT_RECORD_SEPARATOR), or an empty list if the command failed.
Because backticks do not affect standard error, use shell file descriptor
syntax (assuming the shell supports this) if you care to address this.