diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-08-29 12:58:17 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-08-29 12:58:17 -0700 |
commit | b64a1294cf75eebd873e05ee3b771d165893ed3b (patch) | |
tree | 982df2951861698472b4e96f2807b78f4bff0315 /pp_sys.c | |
parent | 92f2ac5f91d4e93cd51cdb5d8e967e1a73c9d7dc (diff) | |
download | perl-b64a1294cf75eebd873e05ee3b771d165893ed3b.tar.gz |
&CORE::tell()
This commit allows &CORE::tell to be called through references and
via ampersand syntax. pp_tell is modified to take into account the
nulls pushed on to the stack in pp_coreargs, which happens because
pp_coreargs has no other way to tell pp_tell how many arguments it’s
actually getting. See commit 0163043a for details.
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2092,7 +2092,7 @@ PP(pp_tell) GV *gv; IO *io; - if (MAXARG != 0) + if (MAXARG != 0 && (TOPs || POPs)) PL_last_in_gv = MUTABLE_GV(POPs); else EXTEND(SP, 1); |