summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorSlaven Rezic <slaven@rezic.de>2002-11-18 23:50:04 +0100
committerhv <hv@crypt.org>2002-11-25 02:31:10 +0000
commit9d7f88ddd9ec1f324b7625b5481fe9d2002a2554 (patch)
treee566aa7181c5d7f54d81bb81335979b5ee6bca50 /pp_ctl.c
parentb536bf570905070470ba64c88c9fb4f28bfa54f3 (diff)
downloadperl-9d7f88ddd9ec1f324b7625b5481fe9d2002a2554.tar.gz
Re: [perl #18479] Error when no strict refs in effect
Message-ID: <87smxya6pf.fsf@vran.herceg.de> p4raw-id: //depot/perl@18176
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index a91eb3810a..a43e629e2d 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2732,6 +2732,12 @@ S_doeval(pTHX_ int gimme, OP** startop)
Perl_croak(aTHX_ "%sCompilation failed in regexp",
(*msg ? msg : "Unknown error\n"));
}
+ else {
+ char* msg = SvPVx(ERRSV, n_a);
+ if (!*msg) {
+ sv_setpv(ERRSV, "Compilation error");
+ }
+ }
RETPUSHUNDEF;
}
CopLINE_set(&PL_compiling, 0);