On Thu, Aug 18, 2005 at 08:58:55PM -0700, Mark-Jason Dominus wrote:

> This program generates the following output:
> 
>         Bareword found where operator expected at /tmp/bug.pl line 4, near 
> "$O Data::Dumper"
>                 (Missing operator before Data::Dumper?)
>         OK
> 
> 
> The warning message here is inappropriate.  The statement is parsed
> and executed correctly.
> 
> Also, this warning does not appear in "perldiag".

It does appear, but the first word is variable:

       %s found where operator expected
           (S) The Perl lexer knows whether to expect a term or an
           operator.  If it sees what it knows to be a term when it was
           expecting to see an operator, it gives you this warning.
           Usually it indicates that an operator or delimiter was omitted,
           such as a semicolon.


Ronald

Reply via email to