projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
237da80
)
Test that (??{$pvlvregexp}) does not recompile the regexp
author
Father Chrysostomos
<sprout@cpan.org>
Mon, 25 Nov 2013 07:30:09 +0000
(23:30 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Mon, 25 Nov 2013 07:30:09 +0000
(23:30 -0800)
2685dc2d9a
accidentally fixed this. Oops! :-)
t/re/recompile.t
patch
|
blob
|
history
diff --git
a/t/re/recompile.t
b/t/re/recompile.t
index
f026fae
..
2ae310d
100644
(file)
--- a/
t/re/recompile.t
+++ b/
t/re/recompile.t
@@
-22,7
+22,7
@@
BEGIN {
}
-plan tests => 4
6
;
+plan tests => 4
8
;
my $results = runperl(
switches => [ '-Dr' ],
@@
-210,3
+210,10
@@
CODE
comp_n(2, <<'CODE', '(??{number})');
"bb" =~ /(??{123})/;
CODE
+
+comp_n(2, <<'CODE', '(??{$pvlv_regexp})');
+sub {
+ $_[0] = ${qr/abc/};
+ "bb" =~ /(??{$_[0]})/;
+}->($_[0]);
+CODE