http://www.perlmonks.org?node_id=274226


in reply to Re: Re: Anyone use "xor" in conditionals?
in thread Anyone use "xor" in conditionals?

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...

  • Comment on Re: Re: Re: Anyone use "xor" in conditionals?