diff options
Diffstat (limited to 'pod/perlfunc.pod')
-rw-r--r-- | pod/perlfunc.pod | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 2fe7404fc9..8227969f4f 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -9638,18 +9638,19 @@ L<C<use>|/use Module VERSION LIST>ing library modules that won't work with older versions of Perl. (We try not to do this more than we have to.) -C<use VERSION> also lexically enables all features available in the requested +C<use VERSION> lexically enables all features available in the requested version as defined by the L<feature> pragma, disabling any features not in the requested version's feature bundle. See L<feature>. -Similarly, if the specified Perl version is greater than or equal to +If the specified Perl version is greater than or equal to 5.12.0, strictures are enabled lexically as -with L<C<use strict>|strict>. Any explicit use of -C<use strict> or C<no strict> overrides C<use VERSION>, even if it comes -before it. Later use of C<use VERSION> -will override all behavior of a previous -C<use VERSION>, possibly removing the C<strict> and C<feature> added by -C<use VERSION>. C<use VERSION> does not -load the F<feature.pm> or F<strict.pm> +with L<C<use strict>|strict>. +Similarly, L<warnings> are enabled if C<VERSION> is 5.35.0 or higher. +Any explicit use of C<use strict> or C<no strict> overrides C<use VERSION>, +even if it comes before it. +Later use of C<use VERSION> will override all behavior of a previous +C<use VERSION>, possibly removing the C<strict>, C<warnings>, and C<feature> +added by C<use VERSION>. C<use VERSION> does not +load the F<feature.pm>, F<strict.pm>, or F<warnings.pm> files. The C<BEGIN> forces the L<C<require>|/require VERSION> and |