From 94c11dd4c6d1ae9fc6bf43388594fb5045cfe62b Mon Sep 17 00:00:00 2001 From: Ricardo Signes Date: Fri, 20 Jan 2012 10:52:22 -0500 Subject: [PATCH] begin filling the 5.16.0 delta from 5.15.2 This is largely a copy and paste job. Once I copy and paste most things in, I will then start condensing them. This does *not* include the following sections from perl5152delta: * module updates * configuration and compilation changes * internals changes --- Porting/perl5160delta.pod | 141 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 140 insertions(+), 1 deletion(-) diff --git a/Porting/perl5160delta.pod b/Porting/perl5160delta.pod index ddd5ee2..c9a113b 100644 --- a/Porting/perl5160delta.pod +++ b/Porting/perl5160delta.pod @@ -97,6 +97,29 @@ run time, destruct time. Many new functions have been added to the API for manipulating lexical pads. See L for more information. +=head2 Subroutines in the CORE namespace + +Many Perl keywords are now available as subroutines in the CORE namespace. +Most of these cannot be called through references or via C<&foo> syntax +yet, but must be called as barewords. In other words, you can now do +this: + + BEGIN { *entangle = \&CORE::tie } + entangle $variable, $package, @args; + +This currently works for overridable keywords other than C and the +infix operators. Calling through references only works for functions that +take no arguments (like C). + +Work is under way to allow more of these subroutines to be called through +references. + +=head2 C<__FILE__()> Syntax + +The C<__FILE__>, C<__LINE__> and C<__PACKAGE__> tokens can now be written +with an empty pair of parentheses after them. This makes them parse the +same way as C