Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: comparing two values under 'perl -w'

by I0 (Priest)
on Apr 03, 2002 at 04:01 UTC ( #156225=note: print w/ replies, xml ) Need Help??


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

(not defined($a) && not defined($b)) || ($a == $b)


Comment on Re: comparing two values under 'perl -w'
Download Code
Replies are listed 'Best First'.
Re: Re: comparing two values under 'perl -w'
by Anonymous Monk on Apr 03, 2002 at 04:39 UTC

    That will still throw an uninit warning if one variable is defined and the other undefined.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2015-08-05 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (76 votes), past polls