summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-20 16:34:33 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-20 16:34:33 +0000
commit649da0762311e9a19091946020dc56feadc1378c (patch)
treec2938f1eaaf415ee62d64fd6c89fbf47f5c3af26 /op.c
parent14dd3ad8c9bf82cf09798a22cc89a9862dfd6d1a (diff)
downloadperl-649da0762311e9a19091946020dc56feadc1378c.tar.gz
glob() takes one or no user arguments and a non-user-visible second
hidden argument, fix its prototype-checking accordingly p4raw-id: //depot/perl@5163
Diffstat (limited to 'op.c')
-rw-r--r--op.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/op.c b/op.c
index eb60ec1876..9ba8582152 100644
--- a/op.c
+++ b/op.c
@@ -5504,6 +5504,7 @@ Perl_ck_glob(pTHX_ OP *o)
{
GV *gv;
+ o = ck_fun(o);
if ((o->op_flags & OPf_KIDS) && !cLISTOPo->op_first->op_sibling)
append_elem(OP_GLOB, o, newDEFSVOP());
@@ -5542,7 +5543,7 @@ Perl_ck_glob(pTHX_ OP *o)
gv_IOadd(gv);
append_elem(OP_GLOB, o, newGVOP(OP_GV, 0, gv));
scalarkids(o);
- return ck_fun(o);
+ return o;
}
OP *