SPUG: 0 == undef

Peter Darley pdarley at kinesis-cem.com
Wed Apr 7 13:26:43 CDT 2004


Folks,
	I'm wondering if there's any way to get 0 to not equal undef.  When I do:

my ($Test1, $Test2) = 0, undef;
if ($Test1 == $Test2) {print "Crap!\n"}
else {print "OK\n"}

	I find out that 0==undef.
	
	I'm also wondering what the thinking here is?
Thanks,
Peter Darley

	



More information about the spug-list mailing list