This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
&CORE::foo() for close, getc and readline
authorFather Chrysostomos <sprout@cpan.org>
Fri, 26 Aug 2011 00:59:12 +0000 (17:59 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Fri, 26 Aug 2011 06:02:09 +0000 (23:02 -0700)
commit30901a8a3fcf590cb60375fd3b39c6b0d0bf6e00
tree2fe79e70e0e8643f19efbfa4154f2279408f4040
parent64a8239ec9dfc1bed7de64084b6c65e6e05f72f5
&CORE::foo() for close, getc and readline

This commit allows the subs in the CORE package for close, getc and
readline to be called through references and via ampersand syntax. The
pp functions are modified to take into account the nulls that coreargs
pushes on to the stack to indicate that there is no argument.
gv.c
pp.c
pp_hot.c
pp_sys.c
t/op/coresubs.t