summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-08-29 12:58:17 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-08-29 12:58:17 -0700
commitb64a1294cf75eebd873e05ee3b771d165893ed3b (patch)
tree982df2951861698472b4e96f2807b78f4bff0315 /pp_sys.c
parent92f2ac5f91d4e93cd51cdb5d8e967e1a73c9d7dc (diff)
downloadperl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 5cd9ef6613..2da7fbd578 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -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);