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

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

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.