summaryrefslogtreecommitdiff
path: root/gv.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-08-27 18:40:05 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-08-27 23:37:48 -0700
commit0da4a804fef07340c6c2f7617fcf7ed884cea7ae (patch)
treee9bec520d3a37b787f28d1f86da083b4c7fefa2a /gv.c
parent29475144d546bc21d52fcc452ac0a8d41d3b7d7d (diff)
downloadperl-0da4a804fef07340c6c2f7617fcf7ed884cea7ae.tar.gz
&CORE::sleep()
This commit allows &CORE::sleep to be called through references and via ampersand syntax. pp_sleep 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 sleep how many arguments it’s actually getting. See commit 0163043a for details. Unfortunately, sleep with no args is nearly impossible to test porta- bly. But I have checked that it works.
Diffstat (limited to 'gv.c')
-rw-r--r--gv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gv.c b/gv.c
index d5b497fd42..d9030045eb 100644
--- a/gv.c
+++ b/gv.c
@@ -1358,7 +1358,7 @@ Perl_gv_fetchpvn_flags(pTHX_ const char *nambeg, STRLEN full_len, I32 flags,
case KEY_lstat:
case KEY_pop:
case KEY_push:
- case KEY_setpgrp: case KEY_shift: case KEY_sleep:
+ case KEY_setpgrp: case KEY_shift:
case KEY_splice:
case KEY_srand: case KEY_stat: case KEY_substr:
case KEY_sysopen: