From 8f7d85af81a1d45acb4b5bdd3ef5636dccc8c6fb Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Fri, 20 May 2016 13:25:20 -0700 Subject: Update feature.pm docs for lex sub acceptance --- lib/feature.pm | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'lib') 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: 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, C +and C syntax. See L 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, C -and C syntax. See L 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 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 -- cgit v1.2.1