summaryrefslogtreecommitdiff
path: root/pod
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-03 09:29:37 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-03-03 09:29:37 +0000
commit7dfde25db661bada3e1f19c61513f0bac481ca05 (patch)
tree7c2c5eb16aba099a3c25f64ee5262b27c394580a /pod
parentdb7bf7291a2d4c87f0ded67aeafc51c0a18c2fcd (diff)
downloadperl-7dfde25db661bada3e1f19c61513f0bac481ca05.tar.gz
Make use VERSION also load feature.pm
p4raw-id: //depot/perl@30446
Diffstat (limited to 'pod')
-rw-r--r--pod/perlfunc.pod6
1 files changed, 5 insertions, 1 deletions
diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod
index b9e17b9c49..67e8c1e762 100644
--- a/pod/perlfunc.pod
+++ b/pod/perlfunc.pod
@@ -6815,7 +6815,7 @@ except that Module I<must> be a bareword.
VERSION may be either a numeric argument such as 5.006, which will be
compared to C<$]>, or a literal of the form v5.6.1, which will be compared
-to C<$^V> (aka $PERL_VERSION. A fatal error is produced if VERSION is
+to C<$^V> (aka $PERL_VERSION). A fatal error is produced if VERSION is
greater than the version of the current Perl interpreter; Perl will not
attempt to parse the rest of the file. Compare with L</require>, which can
do a similar check at run time.
@@ -6833,6 +6833,10 @@ This is often useful if you need to check the current Perl version before
C<use>ing library modules that have changed in incompatible ways from
older versions of Perl. (We try not to do this more than we have to.)
+If the specified perl version is greater than or equal to 5.9.5, C<use
+VERSION> will also load the C<feature> pragma and enable all features
+available in the requested version. See L<feature>.
+
The C<BEGIN> forces the C<require> and C<import> to happen at compile time. The
C<require> makes sure the module is loaded into memory if it hasn't been
yet. The C<import> is not a builtin--it's just an ordinary static method