in reply to Dealing with Use of uninitialised Values warning
You could also do this:
use warnings; no warnings 'uninitialized';
It's handy, especially in CGI, for situations like if ( $param_this =~ /that/ ) {}, which otherwise has to be if ( $param_this and $param_this =~ /that/ ) {} to avoid the warnings. It's sort of a DWIW kludge but since you're doing comparisons without explicitly checking what sort of thing you're comarping ("e" > 6, for example), it might be fine for what you're doing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Dealing with Use of uninitialised Values warning
by kiat (Vicar) on Nov 21, 2004 at 02:07 UTC | |
by Your Mother (Archbishop) on Nov 21, 2004 at 18:33 UTC |