From a7f6e211947a6eec78d594aaf629ee4990994c2b Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sat, 12 Feb 2011 13:15:46 -0800 Subject: [PATCH] Correct perldiag/Ambiguous use of -%s Use of -foo to mean "-foo" is valid even in strict mode. --- pod/perldiag.pod | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pod/perldiag.pod b/pod/perldiag.pod index fd6f17c..51ed36a 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -140,9 +140,8 @@ simply turning off warnings with C. =item Ambiguous use of -%s resolved as -&%s() (W ambiguous) You wrote something like C<-foo>, which might be the -string C<"-foo"> (outside of C), or a call to the -function C, negated. If you meant the string, just write -C<"-foo">, and please use strict. If you meant the function call, +string C<"-foo">, or a call to the function C, negated. If you meant +the string, just write C<"-foo">. If you meant the function call, write C<-foo()>. =item '|' and '<' may not both be specified on command line -- 1.8.3.1