diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-20 16:34:33 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 2000-02-20 16:34:33 +0000 |
commit | 649da0762311e9a19091946020dc56feadc1378c (patch) | |
tree | c2938f1eaaf415ee62d64fd6c89fbf47f5c3af26 | |
parent | 14dd3ad8c9bf82cf09798a22cc89a9862dfd6d1a (diff) | |
download | perl-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
-rw-r--r-- | op.c | 3 | ||||
-rw-r--r-- | opcode.h | 2 | ||||
-rwxr-xr-x | opcode.pl | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -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 * @@ -1477,7 +1477,7 @@ EXT U32 PL_opargs[] = { 0x0001368c, /* ref */ 0x00122804, /* bless */ 0x00001608, /* backtick */ - 0x00132808, /* glob */ + 0x00012808, /* glob */ 0x00001608, /* readline */ 0x00001608, /* rcatline */ 0x00002204, /* regcmaybe */ @@ -379,7 +379,7 @@ bless bless ck_fun s@ S S? backtick quoted execution (``, qx) ck_null t% # glob defaults its first arg to $_ -glob glob ck_glob t@ S? S? +glob glob ck_glob t@ S? readline <HANDLE> ck_null t% rcatline append I/O operator ck_null t% |