Skip to content

Commit

Permalink
feature: document feature bundle ':all' and why you don't use it
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycoz committed Sep 21, 2023
1 parent 1c5a7c5 commit a75216f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
15 changes: 14 additions & 1 deletion lib/feature.pm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion regen/feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ sub longest {

__END__
package feature;
our $VERSION = '1.84';
our $VERSION = '1.85';
FEATURES
Expand Down Expand Up @@ -1372,6 +1372,19 @@ =head1 FEATURE BUNDLES
use feature ":5.14.0"; # same as ":5.14"
use feature ":5.14.1"; # same as ":5.14"
You can also do:
use feature ":all";
or
no feature ":all";
but the first may enable features in a later version of Perl that
change the meaning of your code, and the second may disable mechanisms
that are part of Perl's current behavior that have been turned into
features, just as C<indirect> and C<bareword_filehandles> were.
=head1 IMPLICIT LOADING
Instead of loading feature bundles by name, it is easier to let Perl do
Expand Down

0 comments on commit a75216f

Please sign in to comment.