From: David Golden Date: Mon, 8 Feb 2010 02:25:20 +0000 (-0500) Subject: revise perldelta note on strict and lax version rules X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fab55263f31aa58824db74ec3ea813ef835044a6;p=p5sagit%2Fp5-mst-13.2.git revise perldelta note on strict and lax version rules --- diff --git a/pod/perl5120delta.pod b/pod/perl5120delta.pod index 683415c..4f17749 100644 --- a/pod/perl5120delta.pod +++ b/pod/perl5120delta.pod @@ -385,20 +385,22 @@ number format. See L<"Version number formats"> for details. =head2 Version number formats Acceptable version number formats have been formalized into "strict" and -"lax" rules. C takes a strict version number. C takes a lax version number. C and the -L object constructors take lax version numbers. Providing an -invalid version will result in a fatal error. - -These formats will be documented fully in the L module in a -subsequent release of Perl 5.11. To a first approximation, a "strict" -version number is a positive decimal number (integer or decimal-fraction) -without exponentiation or else a dotted-decimal v-string with a leading 'v' -character and at least three components. A "lax" version number allows -v-strings with fewer than three components or without a leading 'v'. Under -"lax" rules, both decimal and dotted-decimal versions may have a trailing -"alpha" component separated by an underscore character after a fractional -or dotted-decimal component. +"lax" rules. C takes a strict version number. +C and the L object constructors take lax +version numbers. Providing an invalid version will result in a fatal +error. The version argument in C is first parsed as a +numeric literal or v-string and then passed to C +(and must then pass the "lax" format test). + +These formats are documented fully in the L module. To a first +approximation, a "strict" version number is a positive decimal number +(integer or decimal-fraction) without exponentiation or else a +dotted-decimal v-string with a leading 'v' character and at least three +components. A "lax" version number allows v-strings with fewer than +three components or without a leading 'v'. Under "lax" rules, both +decimal and dotted-decimal versions may have a trailing "alpha" +component separated by an underscore character after a fractional or +dotted-decimal component. The L module adds C and C functions to check a scalar against these rules.