Sun751 has asked for the wisdom of the Perl Monks concerning the following question:
In below code i am trying to check if the variables are undef
, could any one suggest me better way???
if ($WCkey eq undef && $SCkey eq undef && $Pkey eq undef && $ +Wkey eq undef && $Ukey eq undef) { print "bla bla bla"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: check undef
by moritz (Cardinal) on Jun 23, 2009 at 07:29 UTC | |
by srikrishnan (Beadle) on Jun 23, 2009 at 09:12 UTC | |
by Anonymous Monk on Jun 23, 2009 at 09:16 UTC | |
Re: check undef
by Corion (Patriarch) on Jun 23, 2009 at 07:24 UTC | |
by Sun751 (Beadle) on Jun 23, 2009 at 07:32 UTC | |
by Corion (Patriarch) on Jun 23, 2009 at 08:34 UTC | |
Re: check undef
by linuxer (Curate) on Jun 23, 2009 at 09:33 UTC | |
by davorg (Chancellor) on Jun 23, 2009 at 09:40 UTC | |
by ikegami (Patriarch) on Jun 23, 2009 at 12:16 UTC | |
Re: check undef
by Anonymous Monk on Jun 23, 2009 at 07:23 UTC |
Back to
Seekers of Perl Wisdom