This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta: Mention the split/@_ change in Errata
authorFather Chrysostomos <sprout@cpan.org>
Sun, 27 Mar 2011 23:36:25 +0000 (16:36 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 27 Mar 2011 23:36:25 +0000 (16:36 -0700)
pod/perldelta.pod

index 4c46160..3cbacf3 100644 (file)
@@ -4402,6 +4402,12 @@ You can now use the C<keys>, C<values>, C<each> builtin functions on arrays
 This is actually a change introduced in perl 5.12.0, but it was missed from
 that release's perldelta.
 
+=head2 C<split> and C<@_>
+
+C<split> no longer modifies C<@_> when called in scalar or void context.
+In void context it now produces a "Useless use of split" warning.
+This was also a perl 5.12.0 changed which missed the perldelta.
+
 =head1 Obituary
 
 Randy Kobes, creator of the kobesearch alternative to search.cpan.org and