"be consistent" | |
PerlMonks |
Re: Which pragmas are activated with a specific perl version?by LanX (Saint) |
on Mar 15, 2018 at 11:20 UTC ( [id://1210940]=note: print w/replies, xml ) | Need Help?? |
from perldoc use
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
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|