XP is just a number | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I'd say the former (resembeling the OP) makes sense:
It's testing for all vars at first if it is defined and then if it also isn't the empty string. This partial results is inverted for $odate and then chained on the same level. The result of that is inverted by the leading "not". If you ignore the (possible) warnings, when a string function is applied to undef will yield the same. That may be what he wants or not. Your (!defined($pname) && $pname ne '') on the other hand is only true für $pname being "undef", so contains a redundant test. In reply to Re^2: if not defined
by pKai
|
|