summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2002-02-18 16:41:26 +0100
committerAbhijit Menon-Sen <ams@wiw.org>2002-02-18 13:59:48 +0000
commitd4a8e56c4dba2cdaeeea4c6a0c703df02a2c74b3 (patch)
tree668fd9493d5fb1ee5d44eab5bde3e33e8a1de572 /pp_ctl.c
parent476544504b947116ee05cdb1f7600d270222ac97 (diff)
downloadperl-d4a8e56c4dba2cdaeeea4c6a0c703df02a2c74b3.tar.gz
bug on "do NUMBER"
Message-Id: <20020218154126.A692@rafael> p4raw-id: //depot/perl@14741
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 14a48c653d..c60f7dc4ea 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2870,7 +2870,7 @@ PP(pp_require)
OP *op;
sv = POPs;
- if (SvNIOKp(sv)) {
+ if (SvNIOKp(sv) && PL_op->op_type != OP_DOFILE) {
if (SvPOK(sv) && SvNOK(sv) && SvNV(sv)) { /* require v5.6.1 */
UV rev = 0, ver = 0, sver = 0;
STRLEN len;