summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorAdrian M. Enache <enache@rdslink.ro>2003-04-08 10:12:13 +0300
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2003-04-08 19:47:05 +0000
commit7678c486bb9005aaaba9a0134efb395936e5a9f7 (patch)
treea14c4408ef5ecb1a0dd715897c93c0baee53e3f3 /op.c
parent27308ded152a902d86f6f5763883d26b257e257a (diff)
downloadperl-7678c486bb9005aaaba9a0134efb395936e5a9f7.tar.gz
Re: Error: Unknown error
Message-ID: <20030408041213.GA13553@ratsnest.hole> p4raw-id: //depot/perl@19170
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/op.c b/op.c
index af1fd08ac5..39089fbba8 100644
--- a/op.c
+++ b/op.c
@@ -4191,7 +4191,7 @@ Perl_newATTRSUB(pTHX_ I32 floor, OP *o, OP *proto, OP *attrs, OP *block)
if (*s != 'B' && *s != 'E' && *s != 'C' && *s != 'I')
goto done;
- if (strEQ(s, "BEGIN")) {
+ if (strEQ(s, "BEGIN") && !PL_error_count) {
I32 oldscope = PL_scopestack_ix;
ENTER;
SAVECOPFILE(&PL_compiling);