X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/2a0fcf5861443eb0b229b376f6c9663981427314..5a6bb681360972ef854d7b6b457148c9b1aa61a8:/regen/feature.pl diff --git a/regen/feature.pl b/regen/feature.pl index 21e8a2b..c9a4cd6 100755 --- a/regen/feature.pl +++ b/regen/feature.pl @@ -30,9 +30,11 @@ my %feature = ( array_base => 'arybase', current_sub => '__SUB__', lexical_subs => 'lexsubs', + postderef_qq => 'postderef_qq', unicode_eval => 'unieval', unicode_strings => 'unicode', fc => 'fc', + signatures => 'signatures', ); # NOTE: If a feature is ever enabled in a non-contiguous range of Perl @@ -53,6 +55,8 @@ my %feature_bundle = ( evalbytes current_sub fc)], "5.19" => [qw(say state switch unicode_strings unicode_eval evalbytes current_sub fc)], + "5.21" => [qw(say state switch unicode_strings unicode_eval + evalbytes current_sub fc)], ); # not actually used currently @@ -359,7 +363,7 @@ read_only_bottom_close_and_rename($h); __END__ package feature; -our $VERSION = '1.34'; +our $VERSION = '1.37'; FEATURES @@ -454,7 +458,7 @@ This feature is available starting with Perl 5.10. =head2 The 'unicode_strings' feature -C tells the compiler to use Unicode semantics +C tells the compiler to use Unicode rules in all string operations executed within its scope (unless they are also within the scope of either C or C). The same applies to all regular expressions compiled within the scope, even if executed outside @@ -462,7 +466,7 @@ it. It does not change the internal representation of strings, but only how they are interpreted. C tells the compiler to use the traditional -Perl semantics wherein the native character set semantics is used unless it is +Perl rules wherein the native character set rules is used unless it is clear to Perl that Unicode is desired. This can lead to some surprises when the behavior suddenly changes. (See L for details.) For this reason, if you are @@ -559,6 +563,26 @@ and C syntax. See L for details. This feature is available from Perl 5.18 onwards. +=head2 The 'signatures' 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: + + no warnings "experimental::signatures"; + +This enables unpacking of subroutine arguments into lexical variables +by syntax such as + + sub foo ($left, $right) { + return $left + $right; + } + +See L for details. + +This feature is available from Perl 5.20 onwards. + =head1 FEATURE BUNDLES It's possible to load multiple features together, using