dirtdog has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, Can anyone tell me if the following 2 statements would be equivalent as far as checking that a variable is not null.
next unless ! $ex_date; next unless !defined($ex_date);
Basically, i would like to go to the next record if the variable $ex_date is null. any help is much appreciated. thanks Tony
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Checking Variable for Not Null
by hippo (Archbishop) on May 27, 2015 at 15:00 UTC | |
by dirtdog (Monk) on May 27, 2015 at 15:16 UTC | |
Re: Checking Variable for Not Null
by Athanasius (Archbishop) on May 27, 2015 at 15:05 UTC | |
by dirtdog (Monk) on May 27, 2015 at 15:09 UTC | |
by Athanasius (Archbishop) on May 27, 2015 at 15:17 UTC | |
by dirtdog (Monk) on May 27, 2015 at 15:22 UTC | |
Re: Checking Variable for Not Null
by GotToBTru (Prior) on May 27, 2015 at 14:52 UTC | |
Re: Checking Variable for Not Null
by t_rex_joe (Sexton) on May 27, 2015 at 16:21 UTC | |
Re: Checking Variable for Not Null
by locked_user sundialsvc4 (Abbot) on May 27, 2015 at 15:39 UTC |