This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perldelta for a50cb9d2d (lex sub acceptance)
authorFather Chrysostomos <sprout@cpan.org>
Sun, 19 Jun 2016 07:27:54 +0000 (00:27 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 19 Jun 2016 07:59:29 +0000 (00:59 -0700)
mostly based on 1c2511e0acc.

pod/perldelta.pod

index cbdc129..949d75b 100644 (file)
@@ -45,6 +45,13 @@ ignored at the higher priority ones.  There are still some gotchas in
 some strings, though.  See
 L<perllocale/Collation of strings containing embedded C<NUL> characters>.
 
+=head2 Lexical subroutines are no longer experimental
+
+Using the C<lexical_subs> feature no longer emits a warning.  Existing code that disables the C<experimental::lexical_subs> warning category that the
+feature previously used will continue to work.  The C<lexical_subs> feature
+has no effect; all Perl code can use lexical subroutines, regardless of
+what feature declarations are in scope.
+
 =head1 Security
 
 XXX Any security-related notices go here.  In particular, any security
@@ -92,8 +99,8 @@ to in list context.
     sub bar : lvalue { keys(@_) }
     (bar) = 3; # also an error
 
-This makes the lvalue sub case consistent with C<(keys %hash) = ...>, which
-is also an error.  [perl #128187]
+This makes the lvalue sub case consistent with C<(keys %hash) = ...> and
+C<(keys @_) = ...>, which are also errors.  [perl #128187]
 
 =head1 Deprecations