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/misc.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/misc.t')
-rwxr-xr-x | t/op/misc.t | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/t/op/misc.t b/t/op/misc.t index 9ab6831859..25f566e19b 100755 --- a/t/op/misc.t +++ b/t/op/misc.t @@ -336,16 +336,18 @@ sub foo { local $_ = shift; split; @_ } @x = foo(' x y z '); print "you die joe!\n" unless "@x" eq 'x y z'; ######## +use re 'eval'; /(?{"{"})/ # Check it outside of eval too EXPECT -Sequence (?{...}) not terminated or not {}-balanced at - line 1, within pattern -/(?{"{"})/: Sequence (?{...}) not terminated or not {}-balanced at - line 1. +Sequence (?{...}) not terminated or not {}-balanced at - line 2, within pattern +/(?{"{"})/: Sequence (?{...}) not terminated or not {}-balanced at - line 2. ######## +use re 'eval'; /(?{"{"}})/ # Check it outside of eval too EXPECT Unmatched right bracket at (re_eval 1) line 1, at end of line syntax error at (re_eval 1) line 1, near ""{"}" -Compilation failed in regexp at - line 1. +Compilation failed in regexp at - line 2. ######## BEGIN { @ARGV = qw(a b c) } BEGIN { print "argv <@ARGV>\nbegin <",shift,">\n" } |