in reply to Re: can i disable certain warnings?
in thread can i disable certain warnings?

What I do to make sure data is going to be in the vars that come in I usually use:
if (! $myvalue ){ $myvalue = $defaultValue; }
If this is what you are asking.

--BigJoe

Replies are listed 'Best First'.
RE: RE: Re: can i disable certain warnings?
by turnstep (Parson) on Jun 21, 2000 at 14:53 UTC
    Another way to write this is:
    $myvalue ||= $defaultValue;
    ...of course, if $myvalue had a "0" as a legitgimate value, you would want something like:
    defined $myvalue or $myvalue=$defaultValue;