64
64
65
65
use constant V5_37 => sort grep {; $_ ne ' bareword_filehandles' } +V5_35;
66
66
67
+ #
68
+ # when updating features please also update the Pod entry for L</"FEATURES CHEAT SHEET">
69
+ #
67
70
my %feature_bundle = (
68
71
all => [ sort keys %feature ],
69
72
default => [ qw{ indirect multidimensional bareword_filehandles} ],
@@ -490,7 +493,7 @@ sub longest {
490
493
__END__
491
494
package feature;
492
495
493
- our $VERSION = '1.75 ';
496
+ our $VERSION = '1.76 ';
494
497
495
498
FEATURES
496
499
@@ -512,13 +515,13 @@ =head1 SYNOPSIS
512
515
say "The case-folded version of $x is: " . fc $x;
513
516
514
517
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 ';
518
521
519
522
520
- # implicitly loads :5.10 feature bundle
521
- use v5.10 ;
523
+ # implicitly loads :5.36 feature bundle
524
+ use v5.36 ;
522
525
523
526
=head1 DESCRIPTION
524
527
@@ -560,6 +563,8 @@ =head2 C<no feature>
560
563
561
564
=head1 AVAILABLE FEATURES
562
565
566
+ Read L</"FEATURE BUNDLES"> for the feature cheat sheet sumup.
567
+
563
568
=head2 The 'say' feature
564
569
565
570
C<use feature 'say' > tells the compiler to enable the Raku-inspired
@@ -827,7 +832,7 @@ =head2 The 'multidimensional' feature
827
832
You can use the L<multidimensional> module on CPAN to disable
828
833
multidimensional array emulation for older versions of Perl.
829
834
830
- =head2 The 'bareword_filehandles' feature.
835
+ =head2 The 'bareword_filehandles' feature
831
836
832
837
This feature enables bareword filehandles for builtin functions
833
838
operations, a generally discouraged practice. It is enabled by
@@ -1319,20 +1324,20 @@ =head1 IMPLICIT LOADING
1319
1324
By explicitly requiring a minimum Perl version number for your program, with
1320
1325
the C<use VERSION > construct. That is,
1321
1326
1322
- use v5.10 .0;
1327
+ use v5.36 .0;
1323
1328
1324
1329
will do an implicit
1325
1330
1326
1331
no feature ':all';
1327
- use feature ':5.10 ';
1332
+ use feature ':5.36 ';
1328
1333
1329
1334
and so on. Note how the trailing sub-version
1330
1335
is automatically stripped from the
1331
1336
version.
1332
1337
1333
1338
But to avoid portability warnings (see L<perlfunc/use> ), you may prefer:
1334
1339
1335
- use 5.010 ;
1340
+ use 5.036 ;
1336
1341
1337
1342
with the same effect.
1338
1343
0 commit comments