diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-06 06:41:17 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1998-07-06 06:41:17 +0000 |
commit | e4d48cc9bddb8984cf12bdfbcbac9580d192b5a5 (patch) | |
tree | 3f490d6e52093c5f09c5b80a219d66b0ab159c02 /t/op/subst.t | |
parent | 06b3afcdfc1f3e17cec01aa39ec73f3f3165a28e (diff) | |
download | perl-e4d48cc9bddb8984cf12bdfbcbac9580d192b5a5.tar.gz |
allow eval-groups in patterns only if they C<use re 'eval';>
p4raw-id: //depot/perl@1334
Diffstat (limited to 't/op/subst.t')
-rwxr-xr-x | t/op/subst.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/op/subst.t b/t/op/subst.t index 92a848fe80..1323b2d004 100755 --- a/t/op/subst.t +++ b/t/op/subst.t @@ -1,6 +1,10 @@ #!./perl -# $RCSfile: s.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:22 $ + +BEGIN { + chdir 't' if -d 't'; + @INC = '../lib' if -d '../lib'; +} print "1..70\n"; @@ -276,6 +280,7 @@ $_ = <<'EOL'; EOL $^R = 'junk'; +use re 'eval'; $foo = ' $@%#lowercase $@%# lowercase UPPERCASE$@%#UPPERCASE' . ' $@%#lowercase$@%#lowercase$@%# lowercase lowercase $@%#lowercase' . ' lowercase $@%#MiXeD$@%# '; |