}
my $args = join(", ", @exprs);
$kid = $obj . "->" . $meth;
- if ($args) {
+ if (length $args) {
return $kid . "(" . $args . ")"; # parens mandatory
} else {
return $kid;
@INC = '../lib';
}
-print "1..54\n";
+print "1..56\n";
@A::ISA = 'B';
@B::ISA = 'C';
test((method $obj ("a","b","c")), "method,a,b,c");
test((method $obj "a","b","c"), "method,a,b,c");
+test($obj->method(0), "method,0");
+test($obj->method(1), "method,1");
+
test($obj->method(), "method");
test($obj->$mname(), "method");
test((method $obj ()), "method");