Skip to content

Commit 02cf5fb

Browse files
atoomickhwilliamson
authored andcommitted
Promote v5.36 usage and feature bundles doc
Promote the use of 'v5.36' instead of 'v5.10'. Also point to the existing Cheat Sheet for the feature bundle. For consistency also removed the final dot in several 'head2' feature title.
1 parent a808d73 commit 02cf5fb

File tree

2 files changed

+27
-20
lines changed

2 files changed

+27
-20
lines changed

lib/feature.pm

Lines changed: 12 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

regen/feature.pl

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ BEGIN
6464

6565
use constant V5_37 => sort grep {; $_ ne 'bareword_filehandles' } +V5_35;
6666

67+
#
68+
# when updating features please also update the Pod entry for L</"FEATURES CHEAT SHEET">
69+
#
6770
my %feature_bundle = (
6871
all => [ sort keys %feature ],
6972
default => [ qw{indirect multidimensional bareword_filehandles} ],
@@ -490,7 +493,7 @@ sub longest {
490493
__END__
491494
package feature;
492495
493-
our $VERSION = '1.75';
496+
our $VERSION = '1.76';
494497
495498
FEATURES
496499
@@ -512,13 +515,13 @@ =head1 SYNOPSIS
512515
say "The case-folded version of $x is: " . fc $x;
513516
514517
515-
# set features to match the :5.10 bundle, which may turn off or on
516-
# multiple features (see below)
517-
use feature ':5.10';
518+
# set features to match the :5.36 bundle, which may turn off or on
519+
# multiple features (see "FEATURE BUNDLES" below)
520+
use feature ':5.36';
518521
519522
520-
# implicitly loads :5.10 feature bundle
521-
use v5.10;
523+
# implicitly loads :5.36 feature bundle
524+
use v5.36;
522525
523526
=head1 DESCRIPTION
524527
@@ -560,6 +563,8 @@ =head2 C<no feature>
560563
561564
=head1 AVAILABLE FEATURES
562565
566+
Read L</"FEATURE BUNDLES"> for the feature cheat sheet sumup.
567+
563568
=head2 The 'say' feature
564569
565570
C<use feature 'say'> tells the compiler to enable the Raku-inspired
@@ -827,7 +832,7 @@ =head2 The 'multidimensional' feature
827832
You can use the L<multidimensional> module on CPAN to disable
828833
multidimensional array emulation for older versions of Perl.
829834
830-
=head2 The 'bareword_filehandles' feature.
835+
=head2 The 'bareword_filehandles' feature
831836
832837
This feature enables bareword filehandles for builtin functions
833838
operations, a generally discouraged practice. It is enabled by
@@ -1319,20 +1324,20 @@ =head1 IMPLICIT LOADING
13191324
By explicitly requiring a minimum Perl version number for your program, with
13201325
the C<use VERSION> construct. That is,
13211326
1322-
use v5.10.0;
1327+
use v5.36.0;
13231328
13241329
will do an implicit
13251330
13261331
no feature ':all';
1327-
use feature ':5.10';
1332+
use feature ':5.36';
13281333
13291334
and so on. Note how the trailing sub-version
13301335
is automatically stripped from the
13311336
version.
13321337
13331338
But to avoid portability warnings (see L<perlfunc/use>), you may prefer:
13341339
1335-
use 5.010;
1340+
use 5.036;
13361341
13371342
with the same effect.
13381343

0 commit comments

Comments
 (0)