diff options
author | Father Chrysostomos <sprout@cpan.org> | 2011-08-25 14:33:03 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2011-08-25 14:33:03 -0700 |
commit | bf0571fdfef93e57e5d288048145a1610dd40938 (patch) | |
tree | 14ef3a17b36cd36d65289dd4a85e1fd7713b823e /pp_hot.c | |
parent | 0b19d81a098d6a9b895996d374ca0adc621f1590 (diff) | |
download | perl-bf0571fdfef93e57e5d288048145a1610dd40938.tar.gz |
&CORE::foo() for @ and $@ prototypes, except unlink
This commit allows the CORE subroutines for functions with @
and $@ prototypes to be called through references and via amper-
sand syntax.
unlink is not included in this commit, as it requires special casing
due to its use of implicit $_.
Since these functions require a pushmark, and since it has to come
between two things that pp_coreargs does, it’s easiest to flag the
coreargs op (with the OPpCOREARGS_PUSHMARK flag added in the previous
commit) and call pp_pushmark directly from pp_coreargs.
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -74,6 +74,7 @@ PP(pp_null) return NORMAL; } +/* This is sometimes called directly by pp_coreargs. */ PP(pp_pushmark) { dVAR; |