while (my ($name, $meta_method) = each %methods) {
is $meta_method->fully_qualified_name, "Derived::${name}";
- like exception { $meta_method->execute }, qr/Undefined subroutine .* called at/;
+ like( exception { $meta_method->execute }, qr/Undefined subroutine .* called at/ );
}
{
while (my ($name, $meta_method) = each %methods) {
is $meta_method->fully_qualified_name, "Derived::${name}";
- ok ! exception { $meta_method->execute },;
+ is( exception { $meta_method->execute }, undef );
}
done_testing;