Perl: the Markov chain saw | |
PerlMonks |
(Ovid) Re: comparing two values under 'perl -w'by Ovid (Cardinal) |
on Apr 02, 2002 at 16:02 UTC ( [id://156042]=note: print w/replies, xml ) | Need Help?? |
There are several ways to solve this. One is to turn off warnings within the scope in which you have defined the variables. The following solution should work under most versions of Perl. It should also match your requirement that undef match undef.
Of course, I've encapsulated that in a sub to minimize its effects. Cheers, Update: Fixed code per some pointers by VSarkiss. Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In Section
Seekers of Perl Wisdom
|
|