diff options
author | Hugo van der Sanden <hv@crypt.org> | 2002-10-10 09:51:24 +0000 |
---|---|---|
committer | hv <hv@crypt.org> | 2002-10-10 09:51:24 +0000 |
commit | e279cb0b1bca3fd51526cebcf39440049559cc98 (patch) | |
tree | d4fae52be5c4e5ac14dfaf1e2421df7172b28913 /lib/strict.t | |
parent | fb652349441d4b05f41d77692a72134e7014d8f6 (diff) | |
download | perl-e279cb0b1bca3fd51526cebcf39440049559cc98.tar.gz |
Remove use of caller() in strict.pm, and tighten Safe compartment
for Storable tests to match.
p4raw-id: //depot/perl@17986
Diffstat (limited to 'lib/strict.t')
-rw-r--r-- | lib/strict.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/strict.t b/lib/strict.t index a95b563f86..37bb4b350b 100644 --- a/lib/strict.t +++ b/lib/strict.t @@ -100,17 +100,17 @@ for (@prgs){ } eval qq(use strict 'garbage'); -print +($@ =~ /^Don't know how to 'use strict qw\(garbage\)/) +print +($@ =~ /^Unknown 'strict' tag\(s\) 'garbage'/) ? "ok ".++$i."\n" : "not ok ".++$i."\t# $@"; eval qq(no strict 'garbage'); -print +($@ =~ /^Don't know how to 'no strict qw\(garbage\)/) +print +($@ =~ /^Unknown 'strict' tag\(s\) 'garbage'/) ? "ok ".++$i."\n" : "not ok ".++$i."\t# $@"; eval qq(use strict qw(foo bar)); -print +($@ =~ /^Don't know how to 'use strict qw\(foo bar\)/) +print +($@ =~ /^Unknown 'strict' tag\(s\) 'foo bar'/) ? "ok ".++$i."\n" : "not ok ".++$i."\t# $@"; eval qq(no strict qw(foo bar)); -print +($@ =~ /^Don't know how to 'no strict qw\(foo bar\)/) +print +($@ =~ /^Unknown 'strict' tag\(s\) 'foo bar'/) ? "ok ".++$i."\n" : "not ok ".++$i."\t# $@"; |