diff options
Diffstat (limited to 'regen')
-rwxr-xr-x | regen/feature.pl | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/regen/feature.pl b/regen/feature.pl index aba644f50b..89d46af907 100755 --- a/regen/feature.pl +++ b/regen/feature.pl @@ -27,7 +27,6 @@ my %feature = ( switch => 'switch', bitwise => 'bitwise', evalbytes => 'evalbytes', - array_base => 'arybase', current_sub => '__SUB__', refaliasing => 'refaliasing', postderef_qq => 'postderef_qq', @@ -45,11 +44,11 @@ my %feature = ( # 5.odd implies the next 5.even, but an explicit 5.even can override it. my %feature_bundle = ( all => [ keys %feature ], - default => [qw(array_base)], - "5.9.5" => [qw(say state switch array_base)], - "5.10" => [qw(say state switch array_base)], - "5.11" => [qw(say state switch unicode_strings array_base)], - "5.13" => [qw(say state switch unicode_strings array_base)], + default => [qw()], + "5.9.5" => [qw(say state switch)], + "5.10" => [qw(say state switch)], + "5.11" => [qw(say state switch unicode_strings)], + "5.13" => [qw(say state switch unicode_strings)], "5.15" => [qw(say state switch unicode_strings unicode_eval evalbytes current_sub fc)], "5.17" => [qw(say state switch unicode_strings unicode_eval @@ -69,6 +68,7 @@ my %feature_bundle = ( ); my @noops = qw( postderef lexical_subs ); +my @removed = qw( array_base ); ########################################################################### @@ -195,6 +195,10 @@ print $pm "my \%noops = (\n"; print $pm " $_ => 1,\n", for @noops; print $pm ");\n"; +print $pm "my \%removed = (\n"; +print $pm " $_ => 1,\n", for @removed; +print $pm ");\n"; + print $pm <<EOPM; our \$hint_shift = $HintShift; @@ -371,7 +375,7 @@ read_only_bottom_close_and_rename($h); __END__ package feature; -our $VERSION = '1.53'; +our $VERSION = '1.54'; FEATURES @@ -521,9 +525,9 @@ This feature is available starting with Perl 5.16. =head2 The 'array_base' feature -This feature supports the legacy C<$[> variable. See L<perlvar/$[> and -L<arybase>. It is on by default but disabled under C<use v5.16> (see -L</IMPLICIT LOADING>, below). +This feature supported the legacy C<$[> variable. See L<perlvar/$[>. +It was on by default but disabled under C<use v5.16> (see +L</IMPLICIT LOADING>, below) and unavailable since perl 5.30. This feature is available under this name starting with Perl 5.16. In previous versions, it was simply on all the time, and this pragma knew @@ -780,6 +784,9 @@ sub __common { if (exists $noops{$name}) { next; } + if (!$import && exists $removed{$name}) { + next; + } unknown_feature($name); } if ($import) { |