From bf484eac86d1083a9dc1877646bb27c0a016b364 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Sun, 10 Dec 2000 00:55:37 +0000 Subject: 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 --- pp_sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1