diff options
author | Slaven Rezic <slaven@rezic.de> | 2002-11-18 23:50:04 +0100 |
---|---|---|
committer | hv <hv@crypt.org> | 2002-11-25 02:31:10 +0000 |
commit | 9d7f88ddd9ec1f324b7625b5481fe9d2002a2554 (patch) | |
tree | e566aa7181c5d7f54d81bb81335979b5ee6bca50 /pp_ctl.c | |
parent | b536bf570905070470ba64c88c9fb4f28bfa54f3 (diff) | |
download | perl-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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); |