This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4276fd3
)
perldelta for given aliasing $_
author
Father Chrysostomos
<sprout@cpan.org>
Thu, 2 Aug 2012 05:03:34 +0000
(22:03 -0700)
committer
Father Chrysostomos
<sprout@cpan.org>
Thu, 2 Aug 2012 17:02:03 +0000
(10:02 -0700)
pod/perldelta.pod
patch
|
blob
|
blame
|
history
diff --git
a/pod/perldelta.pod
b/pod/perldelta.pod
index
be42f56
..
dd55363
100644
(file)
--- a/
pod/perldelta.pod
+++ b/
pod/perldelta.pod
@@
-61,6
+61,13
@@
C<utf8::downgrade> works, that result is used; otherwise, the equivalent of
C<utf8::encode> is used, and a warning is issued about wide characters
(L</Diagnostics>).
+=head2 C<given> now aliases the global $_
+
+Instead of assigning to an implicit lexical $_, C<given> now makes the
+global $_ an alias for its argument, just like C<foreach>. However, it
+still uses lexical $_ if there is lexical $_ in scope (again, just like
+C<foreach>).
+
=head1 Deprecations
XXX Any deprecated features, syntax, modules etc. should be listed here.