summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2001-08-25 15:50:07 +0100
committerAbhijit Menon-Sen <ams@wiw.org>2001-08-25 13:16:02 +0000
commite14e2dc8035bb82ccaf583f5f04cf14f72dcd147 (patch)
treef135200fcbfb36cc0cdf5a2a9ade4851104e35ab /pp_ctl.c
parentaf28e72be41e35986e36821c9cd0c6a965c950c3 (diff)
downloadperl-e14e2dc8035bb82ccaf583f5f04cf14f72dcd147.tar.gz
Re: The coderef in @INC strikes back
Message-Id: <20010825145007.L41464@plum.flirble.org> p4raw-id: //depot/perl@11742
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 1605e21684..e79d45d5e5 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3153,7 +3153,9 @@ trylocal: {
int count;
SV *loader = dirsv;
- if (SvTYPE(SvRV(loader)) == SVt_PVAV) {
+ if (SvTYPE(SvRV(loader)) == SVt_PVAV
+ && !sv_isobject(loader))
+ {
loader = *av_fetch((AV *)SvRV(loader), 0, TRUE);
}