In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/a5591204f2a9c91d685b247ee26652f9cf28af34?hp=df706e5b966feb52bfa867f5bcd042520d7463c4>

- Log -----------------------------------------------------------------
commit a5591204f2a9c91d685b247ee26652f9cf28af34
Author: Father Chrysostomos <[email protected]>
Date:   Fri Oct 17 21:34:08 2014 -0700

    perldelta for refaliasing
-----------------------------------------------------------------------

Summary of changes:
 pod/perldelta.pod | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/pod/perldelta.pod b/pod/perldelta.pod
index 283d0c8..99de917 100644
--- a/pod/perldelta.pod
+++ b/pod/perldelta.pod
@@ -33,6 +33,24 @@ C<<< <<>> >>> is like C<< <> >> but uses three-argument 
C<open> to open
 each file in @ARGV.  So each element of @ARGV is an actual file name, and
 "|foo" won't be treated as a pipe open.
 
+=head2 Aliasing via reference
+
+Variables and subroutines can now be aliased by assigning to a reference:
+
+    \$c = \$d;
+    \&x = \&y;
+
+Or by using a backslash before a C<foreach> iterator variable, which is
+perhaps the most useful idiom this feature provides:
+
+    foreach \%hash (@array_of_hash_refs) { ... }
+
+This feature is experimental and must be enabled via C<use feature
+'refaliasing'>.  It will warn unless the C<experimental::refaliasing>
+warnings category is disabled.
+
+See L<perlref/Assigning to References>.
+
 =head2 Perl now supports POSIX 2008 locale currency additions.
 
 On platforms that are able to handle POSIX.1-2008, the

--
Perl5 Master Repository

Reply via email to