From 70397346423dee021539e9ebb34b4cf1e097ca50 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Tue, 6 Dec 2011 23:18:00 -0800 Subject: [PATCH] Adjust docs to match new ver decl behaviour --- lib/feature.pm | 4 ++++ pod/perlfunc.pod | 12 ++++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/feature.pm b/lib/feature.pm index 16bbbc3..ac7a23c 100644 --- a/lib/feature.pm +++ b/lib/feature.pm @@ -231,6 +231,7 @@ the C construct, and when the version is higher than or equal to will do an implicit + no feature; use feature ':5.10'; and so on. Note how the trailing sub-version is automatically stripped from the @@ -242,6 +243,9 @@ But to avoid portability warnings (see L), you may prefer: with the same effect. +For versions below 5.010, the ":default" feature bundle is automatically +loaded, but it is currently empty and has no effect. + =back =cut diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index bb9c355..809cc67 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -7709,12 +7709,16 @@ This is often useful if you need to check the current Perl version before Cing library modules that won't work with older versions of Perl. (We try not to do this more than we have to.) -Also, if the specified Perl version is greater than or equal to 5.9.5, -C will also load the C pragma and enable all -features available in the requested version. See L. +C also loads the C pragma and enables all features +available in the requested version, disabling any features not in +the current version's feature bundle. See L. (Whether +it actually loads the F module is subject to +change. In some cases it is skipped for efficiency reasons.) Similarly, if the specified Perl version is greater than or equal to 5.11.0, strictures are enabled lexically as with C (except -that the F file is not actually loaded). +that the F file is not actually loaded). Any explicit use of +C or C overrides C, even if it comes +before it. The C forces the C and C to happen at compile time. The C makes sure the module is loaded into memory if it hasn't been -- 1.8.3.1