summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-09-01 14:45:23 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-09-01 14:45:23 +0000
commit468aa647417bbcdb0729a787fa25968401364880 (patch)
tree51e1355e9f5ac34542990153cba5fb0d298eb89d /op.c
parente1b8f2440d42d1ef507b8ee444aca4c022615fdf (diff)
downloadperl-468aa647417bbcdb0729a787fa25968401364880.tar.gz
Add the "no 6" / "no v6" syntax.
p4raw-id: //depot/perl@25344
Diffstat (limited to 'op.c')
-rw-r--r--op.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/op.c b/op.c
index c0cca4e7b7..c6b85a32cd 100644
--- a/op.c
+++ b/op.c
@@ -3057,6 +3057,8 @@ Perl_utilize(pTHX_ int aver, I32 floor, OP *version, OP *idop, OP *arg)
imop = arg; /* no import on explicit () */
else if (SvNIOKp(((SVOP*)idop)->op_sv)) {
imop = Nullop; /* use 5.0; */
+ if (!aver)
+ idop->op_private |= OPpCONST_NOVER;
}
else {
SV *meth;