in reply to Which pragmas are activated with a specific perl version?
use VERSION also lexically enables all features available in the requested version as defined by the feature pragma, disabling any features not in the requested version's feature bundle. See feature . Similarly, if the specified Perl version is greater than or equal to 5.12.0, strictures are enabled lexically as with use strict . Any explicit use of use strict or no strict overrides use VERSION , even if it comes before it. Later use of use VERSION will override all behavior of a previous use VERSION , possibly removing the strict and feature added by use VERSION . use VERSION does not load the feature.pm or strict.pm files.
In perldoc feature each "feature" is listed with the minimal version.
Like
The say feature
use feature say tells the compiler to enable the Perl 6 style say function.
See say for details.
This feature is available starting with Perl 5.10.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Which pragmas are activated with a specific perl version?
by haukex (Archbishop) on Mar 15, 2018 at 13:47 UTC | |
by adhrain (Sexton) on Mar 15, 2018 at 14:14 UTC | |
by haukex (Archbishop) on Mar 15, 2018 at 14:32 UTC |