summaryrefslogtreecommitdiff
path: root/t/base
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-08-31 09:27:25 -0700
committerFather Chrysostomos <sprout@cpan.org>2012-08-31 12:31:26 -0700
commitf777953f1a27fe4a456b4dc3acb1ea6332e12ced (patch)
tree9defeff40a6af38bcd515ea0c856308ca00a8534 /t/base
parent94814ff57ebcea3e481c1e790e0fbce3453704ae (diff)
downloadperl-f777953f1a27fe4a456b4dc3acb1ea6332e12ced.tar.gz
Commit 6b00f562ed broke s/${\%x}{3}//e
It was meant to check whether it was inside the replacement part of s///e, but it only checked that it was inside s///e. PL_lex_repl is set on both sides, but is only equal to PL_linestr on the rhs.
Diffstat (limited to 't/base')
-rw-r--r--t/base/lex.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/base/lex.t b/t/base/lex.t
index 1201436c01..c974797956 100644
--- a/t/base/lex.t
+++ b/t/base/lex.t
@@ -1,6 +1,6 @@
#!./perl
-print "1..72\n";
+print "1..73\n";
$x = 'x';
@@ -358,3 +358,8 @@ print "ok 71 - s//'#' . <<END/e\n";
eval "s//3}->{3/e";
print "not " unless $@;
print "ok 72 - s//3}->{3/e\n";
+
+$_ = "not ok 73";
+$x{3} = "not ";
+eval 's/${\%x}{3}//e';
+print "$_ - s//\${\\%x}{3}/e\n";