summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-03-23 16:15:58 +0000
committerNicholas Clark <nick@ccl4.org>2007-03-23 16:15:58 +0000
commit6952d67eb351266a502cac44072fad4994f66b8c (patch)
treeeebcdd231a1442be0dd7150a7cccc5c9a25f614b /op.c
parent54e8619f399d7124d2d993e15e1e69e86b9b334b (diff)
downloadperl-6952d67eb351266a502cac44072fad4994f66b8c.tar.gz
Change 30080 was wrong to swap the BEGIN test to memEQ
p4raw-id: //depot/perl@30724
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 c7b31ba908..c10bf952ac 100644
--- a/op.c
+++ b/op.c
@@ -5405,7 +5405,7 @@ S_process_special_blocks(pTHX_ const char *const fullname, GV *const gv,
const char *const name = colon ? colon + 1 : fullname;
if (*name == 'B') {
- if (memEQ(name, "BEGIN", 5)) {
+ if (strEQ(name, "BEGIN")) {
const I32 oldscope = PL_scopestack_ix;
ENTER;
SAVECOPFILE(&PL_compiling);