in reply to How To Turn Off Warnings against UPPER CASE comparison Operators
says:#!/usr/bin/perl if ('A' EQ 'A') { print "Equal\n"; }
Bareword found where operator expected at /tmp/test line 3, near "'A' +EQ" (Missing operator before EQ?) String found where operator expected at /tmp/test line 3, near "EQ 'A' +" (Do you need to predeclare EQ?) syntax error at /tmp/test line 3, near "'A' EQ " Execution of /tmp/test aborted due to compilation errors.
However, if there is a way to suppress this warning, the manpage for perllexwarn would be the place to look.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: How To Turn Off Warnings against UPPER CASE comparison Operators
by jmcnamara (Monsignor) on May 05, 2004 at 20:56 UTC |