summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Cozens <simon@netthink.co.uk>2000-12-10 00:55:37 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-12-10 03:50:30 +0000
commitbf484eac86d1083a9dc1877646bb27c0a016b364 (patch)
treee19024ba68bad6dfcf40c066da1558c3cee2220b
parent337449a83e0de486c744f78c32c1bf4cd78b06ec (diff)
downloadperl-bf484eac86d1083a9dc1877646bb27c0a016b364.tar.gz
Re: [ID 20001202.002] [BUG all] 'die qr{pattern}' does not check termination
Message-ID: <20001210005537.B16221@deep-dark-truthful-mirror.perlhacker.org> p4raw-id: //depot/perl@8066
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index da148d81a4..7d6386e3f0 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -448,7 +448,7 @@ PP(pp_die)
}
else {
tmpsv = TOPs;
- tmps = SvROK(tmpsv) ? Nullch : SvPV(tmpsv, len);
+ tmps = (SvROK(tmpsv) && PL_in_eval) ? Nullch : SvPV(tmpsv, len);
}
if (!tmps || !len) {
SV *error = ERRSV;