Message-Id: <
20011113124133.C24305@sizzle.whoville.com>
p4raw-id: //depot/perl@12976
$| = 1;
}
-print "1..90\n";
+print "1..91\n";
$a = {};
bless $a, "Bob";
sub test {
print "not " unless $_[0];
print "ok ", $i++;
- print "# at ", (caller)[1], ", line ", (caller)[2] unless $_[0];
+ print " # at ", (caller)[1], ", line ", (caller)[2] unless $_[0];
print "\n";
}
}
test ! $a->isa('Programmer');
+test $a->isa("HASH");
+
test $a->can("eat");
test ! $a->can("sleep");
test my $ref = $a->can("drink"); # returns a coderef