summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgs@consttype.org>2010-05-19 20:36:12 +0200
committerRafael Garcia-Suarez <rgs@consttype.org>2010-05-20 16:06:49 +0200
commitfaee19b51573e81abe8811f1256a1d27777d6d04 (patch)
tree0b2a2303ed4a25caf3add46835aad57ef9b2aa85 /pp_ctl.c
parent464b2b3dcc8158f7dee4ec9c9d06bd2f09c40687 (diff)
downloadperl-faee19b51573e81abe8811f1256a1d27777d6d04.tar.gz
Do not try to load a feature bundle when doing "no VERSION"
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 6d487ace16..05c5310716 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -3357,8 +3357,9 @@ PP(pp_require)
}
}
- /* We do this only with use, not require. */
+ /* We do this only with "use", not "require" or "no". */
if (PL_compcv &&
+ !(cUNOP->op_first->op_private & OPpCONST_NOVER) &&
/* If we request a version >= 5.9.5, load feature.pm with the
* feature bundle that corresponds to the required version. */
vcmp(sv, sv_2mortal(upg_version(newSVnv(5.009005), FALSE))) >= 0) {