This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
&CORE::sleep()
authorFather Chrysostomos <sprout@cpan.org>
Sun, 28 Aug 2011 01:40:05 +0000 (18:40 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 28 Aug 2011 06:37:48 +0000 (23:37 -0700)
commit0da4a804fef07340c6c2f7617fcf7ed884cea7ae
treee9bec520d3a37b787f28d1f86da083b4c7fefa2a
parent29475144d546bc21d52fcc452ac0a8d41d3b7d7d
&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.
gv.c
pp_sys.c
t/op/coreamp.t