From: Rafael Garcia-Suarez Date: Thu, 8 Mar 2007 13:46:16 +0000 (+0000) Subject: Better docs for C X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c986422f95cdfc308818a780bdf53dc76f8c3998;p=p5sagit%2Fp5-mst-13.2.git Better docs for C p4raw-id: //depot/perl@30514 --- diff --git a/pod/perl593delta.pod b/pod/perl593delta.pod index 328a412..9b708d1 100644 --- a/pod/perl593delta.pod +++ b/pod/perl593delta.pod @@ -117,7 +117,7 @@ been updated to 4.1.0. =head2 C You can now use C followed by a version number to specify that you -want to use a version of perl inferior to the specified one. +want to use a version of perl older than the specified one. =head2 Recursive sort subs diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 90da492..15b8220 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2999,6 +2999,8 @@ X =item no Module +=item no VERSION + See the C function, of which C is the opposite. =item oct EXPR @@ -6814,12 +6816,14 @@ package. It is exactly equivalent to except that Module I 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 -greater than the version of the current Perl interpreter; Perl will not -attempt to parse the rest of the file. Compare with L, which can -do a similar check at run time. +In the peculiar C form, 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 greater than the version of the +current Perl interpreter; Perl will not attempt to parse the rest of the +file. Compare with L, which can do a similar check at run time. +Symmetrically, C allows you to specify that you want a version +of perl older than the specified one. Specifying VERSION as a literal of the form v5.6.1 should generally be avoided, because it leads to misleading error messages under earlier @@ -6834,9 +6838,9 @@ This is often useful if you need to check the current Perl version before Cing 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 will also load the C pragma and enable all features -available in the requested version. See L. +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. 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