|
|
| The stupid question is the question not asked | |
| PerlMonks |
Re: Re: Re: Anyone use "xor" in conditionals?by jsprat (Curate) |
| on Jul 14, 2003 at 23:41 UTC ( #274226=note: print w/ replies, xml ) | Need Help?? |
|
Try it with a non-existent directory. Perl will warn if you do a numeric comparison with an undefined expression, while undef will evaluate as false in a boolean comparison. HTH PS Change the 'if' in your original node to 'unless', but I'm guessing you already know that...
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||