diff options
author | Nicholas Clark <nick@ccl4.org> | 2006-04-20 18:51:02 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-04-20 18:51:02 +0000 |
commit | ef5bf20bc6b2ed1c354c74b07df9c42d91e8f8ed (patch) | |
tree | 7645c829fb7061469fb6d8edf160095344023208 /lib/base | |
parent | 20cfb7610f01690cff9c14e0b19d9a1a2acf2573 (diff) | |
download | perl-ef5bf20bc6b2ed1c354c74b07df9c42d91e8f8ed.tar.gz |
Tweak change 23256 to continue passing on 5.8.x
p4raw-id: //depot/perl@27919
Diffstat (limited to 'lib/base')
-rw-r--r-- | lib/base/t/fields.t | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/base/t/fields.t b/lib/base/t/fields.t index 049b29d395..4d29d8dfc3 100644 --- a/lib/base/t/fields.t +++ b/lib/base/t/fields.t @@ -41,10 +41,9 @@ is_deeply( [sort &show_fields('Foo', fields::PRIVATE)], # We should get compile time failures field name typos eval q(return; my Foo $obj = Foo->new; $obj->{notthere} = ""); -my $error = $Has_PH ? 'No such(?: [\w-]+)? field "notthere"' - : q[No such class field "notthere" in variable $obj ]. - q[of type Foo]; -like( $@, qr/^\Q$error/i ); +my $error = $Has_PH ? qr/No such(?: [\w-]+)? field "notthere"/ + : qr/No such class field "notthere" in variable \$obj of type Foo/; +like( $@, $error ); foreach (Foo->new) { |