From: Ronald J. Kimball Date: Fri, 1 Dec 2000 16:26:08 +0000 (-0500) Subject: Re: [ID 20001130.011] expression parsing bug ? X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=510c8d02ebaa9b180f33ea0895bf85ec8473792d;p=p5sagit%2Fp5-mst-13.2.git Re: [ID 20001130.011] expression parsing bug ? Message-ID: <20001201162608.B1436@linguist.dartmouth.edu> Reword the diagnostic message. p4raw-id: //depot/perl@7949 --- diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 877961d..830faab 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -61,14 +61,14 @@ See L. =item Ambiguous -%c() resolved as a file test -(W ambiguous) A subroutine you used has the same name as a Perl file -test (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. +(W ambiguous) You used a "-" right in front a call to a subroutine +that has the same name as a Perl file test (C). + +To disambiguate it as a subroutine call, use either an extra space after +the "-", C<- f(...)>, or an extra set of parentheses, C<-(f(...))>. +To disambiguate it as a file test, use an extra space after the operator +name C<-f (...)>, or add the space and remove the parentheses, C<-f ...>. =item Ambiguous call resolved as CORE::%s(), qualify as such or use &