diff options
author | Ronald J. Kimball <rjk@linguist.dartmouth.edu> | 2000-12-01 11:26:08 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-12-01 23:46:45 +0000 |
commit | 510c8d02ebaa9b180f33ea0895bf85ec8473792d (patch) | |
tree | ea88046cec94290c9ad307cce40d8419795055cc /pod | |
parent | 9e0e974cbc3ea3978a206d172cf39b02f5fd2a22 (diff) | |
download | perl-510c8d02ebaa9b180f33ea0895bf85ec8473792d.tar.gz |
Re: [ID 20001130.011] expression parsing bug ?
Message-ID: <20001201162608.B1436@linguist.dartmouth.edu>
Reword the diagnostic message.
p4raw-id: //depot/perl@7949
Diffstat (limited to 'pod')
-rw-r--r-- | pod/perldiag.pod | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pod/perldiag.pod b/pod/perldiag.pod index 877961d0a7..830faabf2b 100644 --- a/pod/perldiag.pod +++ b/pod/perldiag.pod @@ -61,14 +61,14 @@ 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. +(W ambiguous) You used a "-" right in front a call to a subroutine +that 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>). + +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 & |