saranperl has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: check Null value
by moritz (Cardinal) on Aug 07, 2009 at 09:32 UTC
    There is no NULL in perl.
Re: check Null value
by Unforgiven (Hermit) on Aug 07, 2009 at 14:06 UTC
    There is, however, "undefined". Maybe you meant that. You could do something like:
    if (not defined $whatever) { # do stuff }