summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorJames Mastros <james@mastros.biz>2010-06-02 18:32:19 +0100
committerRafael Garcia-Suarez <rgs@consttype.org>2010-07-26 10:13:02 +0200
commit397d0f13088c8f2fc07173a360ea1bb9227301e5 (patch)
tree5e6297ab53cf9e613e699f7033100a1dd9d62dbf /pod/perldiag.pod
parent4da603770916eeea54d6ad0bca34bd83bd01dc35 (diff)
downloadperl-397d0f13088c8f2fc07173a360ea1bb9227301e5.tar.gz
Document "Ambiguous use of -%s resolved as -&%s()"
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod8
1 files changed, 8 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 793bcddeb4..9d4451fe35 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -115,6 +115,14 @@ please write C<$foo[2]>, or you might have meant to pass an anonymous
arrayref to the function named foo, then do a scalar deref on the
value it returns. If you meant that, write C<${foo([2])}>.
+=item Ambiguous use of -%s resolved as -&%s() at - line 3.
+
+(W ambiguous) You wrote something like C<-foo>, which might be the
+string C<"-foo"> (outside of C<use strict 'subs'>), or a call to the
+function C<foo>, negated. If you meant the string, just write
+C<"-foo">, and please use strict. If you meant the function call,
+write C<-foo()>.
+
=item '|' and '<' may not both be specified on command line
(F) An error peculiar to VMS. Perl does its own command line