Correct perldiag/Ambiguous use of -%s
authorFather Chrysostomos <sprout@cpan.org>
Sat, 12 Feb 2011 21:15:46 +0000 (13:15 -0800)
committerFather Chrysostomos <sprout@cpan.org>
Sat, 12 Feb 2011 21:15:46 +0000 (13:15 -0800)
Use of -foo to mean "-foo" is valid even in strict mode.

pod/perldiag.pod

index fd6f17c..51ed36a 100644 (file)
@@ -140,9 +140,8 @@ simply turning off warnings with C<no warnings 'ambiguous';>.
 =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<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,
+string C<"-foo">, or a call to the function C<foo>, 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