On Fri, Nov 23, 2001 at 03:32:41PM -0700, chromatic wrote: > + is( DB::DB(), undef, 'DB::DB() should return undef if $DB::ready is false');
Crap, this doesn't quite work in the general case. is( undef, undef ); # ok is( 0, undef ); # not ok is('', undef ); # ok is() uses eq and undef stringifies to ''. is( $foo, undef ) is a nice idiom, though. Should is() distinguish between undef, 0 and ''? Seeing as how it already does between undef and 0 (accidentally), I guess it wouldn't hurt. -- Michael G. Schwern <[EMAIL PROTECTED]> http://www.pobox.com/~schwern/ Perl Quality Assurance <[EMAIL PROTECTED]> Kwalitee Is Job One The truth is you suck!