traveler has asked for the wisdom of the Perl Monks concerning the following question:
when really I want justif ( $foo and $foo ne "bar")
I mean, if it is undefined, it sure is not equal to "bar". So I'd like to turn off just that warning. I cannot figure out (other then by trial and error, I guess) what category to turn off. So, what do I tell "warnings" to turn off just the "undefined in comparison" check? Thanks.if ( $foo ne "bar" )
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Turn off warning for undefined value in comparison?
by Limbic~Region (Chancellor) on Mar 03, 2004 at 23:16 UTC | |
|
Re: Turn off warning for undefined value in comparison?
by cLive ;-) (Prior) on Mar 04, 2004 at 00:41 UTC | |
|
Re: Turn off warning for undefined value in comparison?
by waswas-fng (Curate) on Mar 03, 2004 at 23:17 UTC | |
|
Re: Turn off warning for undefined value in comparison?
by traveler (Parson) on Mar 03, 2004 at 23:45 UTC |