summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2016-05-20 13:25:20 -0700
committerFather Chrysostomos <sprout@cpan.org>2016-05-20 15:59:47 -0700
commit8f7d85af81a1d45acb4b5bdd3ef5636dccc8c6fb (patch)
tree2577d9d4e274ada5cc95bd5c2e42fe780fad60bd /lib
parent4be1619067a9654f65aef6cfd26153e246218fe8 (diff)
downloadperl-8f7d85af81a1d45acb4b5bdd3ef5636dccc8c6fb.tar.gz
Update feature.pm docs for lex sub acceptance
Diffstat (limited to 'lib')
-rw-r--r--lib/feature.pm20
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/feature.pm b/lib/feature.pm
index ede102259d..1994a3f8fb 100644
--- a/lib/feature.pm
+++ b/lib/feature.pm
@@ -248,17 +248,21 @@ This feature is available from Perl 5.16 onwards.
=head2 The 'lexical_subs' feature
-B<WARNING>: This feature is still experimental and the implementation may
-change in future versions of Perl. For this reason, Perl will
-warn when you use the feature, unless you have explicitly disabled the
-warning:
+In Perl versions prior to 5.26, this feature enabled
+declaration of subroutines via C<my sub foo>, C<state sub foo>
+and C<our sub foo> syntax. See L<perlsub/Lexical Subroutines> for details.
- no warnings "experimental::lexical_subs";
+This feature is available from Perl 5.18 onwards. From Perl 5.18 to 5.24,
+it was classed as experimental, and Perl emitted a warning for its
+usage, except when explicitly disabled:
-This enables declaration of subroutines via C<my sub foo>, C<state sub foo>
-and C<our sub foo> syntax. See L<perlsub/Lexical Subroutines> for details.
+ no warnings "experimental::lexical_subs";
-This feature is available from Perl 5.18 onwards.
+As of Perl 5.26, use of this feature no longer triggers a warning, though
+the C<experimental::lexical_subs> warning category still exists (for
+compatibility with code that disables it). In addition, this syntax is
+not only no longer experimental, but it is enabled for all Perl code,
+regardless of what feature declarations are in scope.
=head2 The 'postderef' and 'postderef_qq' features