p4raw-id: //depot/perl@27918
my $error = $Has_PH ? 'No such(?: [\w-]+)? field "notthere"'
: q[No such class field "notthere" in variable $obj ].
q[of type Foo];
-ok( $@ && $@ =~ /^\Q$error/i );
+like( $@, qr/^\Q$error/i );
foreach (Foo->new) {
@{$obj}{qw(what who _up_yours)} = ('Ahh', 'Moo', 'Yip');
while(my($k,$v) = each %test) {
- ok($obj->{$k} eq $v);
+ is($obj->{$k}, $v);
}
}