Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: comparing two values under 'perl -w'

by particle (Vicar)
on Apr 02, 2002 at 15:43 UTC ( [id://156029]=note: print w/replies, xml ) Need Help??


in reply to comparing two values under 'perl -w'

( defined $a and defined $b and $a == $b )
and and or are the same as && and ||, except their precedence is much lower.

don't use $a and $b. they're for sort

~Particle ;Þ

Replies are listed 'Best First'.
Re: Re: comparing two values under 'perl -w'
by kappa (Chaplain) on Apr 02, 2002 at 15:47 UTC
    This one misses the point that two undefs should turn out as equal.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-16 13:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found