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
    Thanks, Your Mother!

    Ah, I see. I suppose we can place "no warnings 'uninitalised'" at the point where it should take effect. Am I right?

      That's right. It scopes the effect. But you will have to use the proper US spelling. :)