Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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??


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?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://274226]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-04-21 07:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (390 votes), past polls