summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Signes <rjbs@semiotic.systems>2021-10-30 15:20:52 -0400
committerRicardo Signes <rjbs@semiotic.systems>2021-11-02 14:19:43 -0400
commitd5c835da0bd504cf8b12ef8b4f4f0795bd314751 (patch)
treee7c08ada8150a53baafd1439f997758a40a1ff87
parentbbe4b56e549d548cc86147e87768dda48539eabc (diff)
downloadperl-d5c835da0bd504cf8b12ef8b4f4f0795bd314751.tar.gz
feature.pm: remove bareword_filehandles from :5.36
-rw-r--r--feature.h2
-rw-r--r--lib/feature.pm14
-rwxr-xr-xregen/feature.pl7
3 files changed, 14 insertions, 9 deletions
diff --git a/feature.h b/feature.h
index 0c157f7364..ca44a23fd3 100644
--- a/feature.h
+++ b/feature.h
@@ -185,7 +185,7 @@
#define FEATURE_BAREWORD_FILEHANDLES_IS_ENABLED \
( \
- CURRENT_FEATURE_BUNDLE <= FEATURE_BUNDLE_535 \
+ CURRENT_FEATURE_BUNDLE <= FEATURE_BUNDLE_527 \
|| (CURRENT_FEATURE_BUNDLE == FEATURE_BUNDLE_CUSTOM && \
FEATURE_IS_ENABLED_MASK(FEATURE_BAREWORD_FILEHANDLES_BIT)) \
)
diff --git a/lib/feature.pm b/lib/feature.pm
index 181eb42e3a..d1091aa65e 100644
--- a/lib/feature.pm
+++ b/lib/feature.pm
@@ -35,7 +35,7 @@ our %feature_bundle = (
"5.15" => [qw(bareword_filehandles current_sub evalbytes fc indirect multidimensional say state switch unicode_eval unicode_strings)],
"5.23" => [qw(bareword_filehandles current_sub evalbytes fc indirect multidimensional postderef_qq say state switch unicode_eval unicode_strings)],
"5.27" => [qw(bareword_filehandles bitwise current_sub evalbytes fc indirect multidimensional postderef_qq say state switch unicode_eval unicode_strings)],
- "5.35" => [qw(bareword_filehandles bitwise current_sub evalbytes fc postderef_qq say state unicode_eval unicode_strings)],
+ "5.35" => [qw(bitwise current_sub evalbytes fc postderef_qq say state unicode_eval unicode_strings)],
"all" => [qw(bareword_filehandles bitwise current_sub declared_refs defer evalbytes fc indirect isa multidimensional postderef_qq refaliasing say signatures state switch try unicode_eval unicode_strings)],
"default" => [qw(bareword_filehandles indirect multidimensional)],
);
@@ -412,8 +412,10 @@ for the exceptions listed below.
The perl built-in filehandles C<STDIN>, C<STDOUT>, C<STDERR>, C<DATA>,
C<ARGV>, C<ARGVOUT> and the special C<_> are always enabled.
-This feature is enabled under this name from Perl 5.34 onwards. In
-previous versions it was simply on all the time.
+This behavior was always present in versions before Perl 5.34. In Perl 5.34,
+it was made controllable with the C<feature> pragma, but was on by default.
+It is not present in the C<:5.36> feature bundle, so C<use v5.36> disables
+this feature.
You can use the L<bareword::filehandles> module on CPAN to disable
bareword filehandles for older versions of perl.
@@ -510,9 +512,9 @@ The following feature bundles are available:
postderef_qq say state switch unicode_eval
unicode_strings
- :5.36 bareword_filehandles bitwise current_sub
- evalbytes fc postderef_qq say state
- unicode_eval unicode_strings
+ :5.36 bitwise current_sub evalbytes fc
+ postderef_qq say state unicode_eval
+ unicode_strings
The C<:default> bundle represents the feature set that is enabled before
any C<use feature> or C<no feature> declaration.
diff --git a/regen/feature.pl b/regen/feature.pl
index a0595f2f5d..18e2cee74f 100755
--- a/regen/feature.pl
+++ b/regen/feature.pl
@@ -58,6 +58,7 @@ use constant V5_23 => sort ( +V5_15, qw{postderef_qq} );
use constant V5_27 => sort ( +V5_23, qw{bitwise} );
use constant V5_35 => sort grep {; $_ ne 'switch'
+ && $_ ne 'bareword_filehandles'
&& $_ ne 'indirect'
&& $_ ne 'multidimensional' } +V5_27;
@@ -822,8 +823,10 @@ for the exceptions listed below.
The perl built-in filehandles C<STDIN>, C<STDOUT>, C<STDERR>, C<DATA>,
C<ARGV>, C<ARGVOUT> and the special C<_> are always enabled.
-This feature is enabled under this name from Perl 5.34 onwards. In
-previous versions it was simply on all the time.
+This behavior was always present in versions before Perl 5.34. In Perl 5.34,
+it was made controllable with the C<feature> pragma, but was on by default.
+It is not present in the C<:5.36> feature bundle, so C<use v5.36> disables
+this feature.
You can use the L<bareword::filehandles> module on CPAN to disable
bareword filehandles for older versions of perl.