Hi, I was wondering if there is a way to use the ok() function in Test.pm to check for a null return value. It looks like the 3 arg form of ok() I'm using only tests the first 2 args to see if they're equal.
I'm considering this approach:
$val = some_func(); # returns NULL on failure
if($val != 0 && $val ne "0")
{
$isnull = 0;
}
else
{
$isnull = 1;
}
ok($isnull,0,"NULL returned");
Thanks,
Walter
