summaryrefslogtreecommitdiff
path: root/pod/perldiag.pod
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-12-01 20:23:29 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-01 20:23:29 +0000
commite5edeb50dffa2b3a1d6245f54a443cff2a31eb3f (patch)
tree36257f25923e4869688feeff47168f70806fe1c2 /pod/perldiag.pod
parent4c32f29ba9da41e214e9e03a44a530ee0427f19a (diff)
downloadperl-e5edeb50dffa2b3a1d6245f54a443cff2a31eb3f.tar.gz
Some help for 20001130.011. Now one gets warnings like
"Ambiguous -f() resolved as a file test ..." p4raw-id: //depot/perl@7944
Diffstat (limited to 'pod/perldiag.pod')
-rw-r--r--pod/perldiag.pod11
1 files changed, 11 insertions, 0 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index 9baf175833..877961d0a7 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -59,6 +59,17 @@ L<perlfunc/accept>.
(F) The '!' is allowed in pack() and unpack() only after certain types.
See L<perlfunc/pack>.
+=item Ambiguous -%c() resolved as a file test
+
+(W ambiguous) A subroutine you used has the same name as a Perl file
+test (C<r w x o R W X O e z s f d l p S u g k b c t T B M A C>), and
+you used a "-" right in front a call to that subroutine, which made it
+really look like a file test. Use either an extra space after the
+"-", C<- f(...)>, or an extra set of parentheses, C<-(f(...))>, to
+disambiguate it as a subroutine call, or an extra space after the
+operator name C<-f (...)>, or remove the parentheses, C<-f ...>, to
+disambiguate it as a file test.
+
=item Ambiguous call resolved as CORE::%s(), qualify as such or use &
(W ambiguous) A subroutine you have declared has the same name as a Perl