Just another Perl shrine | |
PerlMonks |
Re: if not definedby Eimi Metamorphoumai (Deacon) |
on Mar 23, 2007 at 18:15 UTC ( [id://606317]=note: print w/replies, xml ) | Need Help?? |
not defined is fine, but not is very low precedence. That is,
is parsed the same as instead of
Also, if $pname isn't defined, then it can't possibly equal '', so you probably need to change your conditions a bit (probably you mean something like but it's possible you want something else.)
In Section
Seekers of Perl Wisdom
|
|