diff options
author | David Golden <dagolden@cpan.org> | 2010-01-19 10:03:06 -0500 |
---|---|---|
committer | David Golden <dagolden@cpan.org> | 2010-01-19 10:03:06 -0500 |
commit | 916254008628ddf01ee5de6c872bd94a9b535593 (patch) | |
tree | 7e8b45d5a5a62b71d7ca0cb5275a0f43f36f6959 /pod/perl5114delta.pod | |
parent | 1f15e670edb515b744e9021b4a42a7955da83093 (diff) | |
download | perl-916254008628ddf01ee5de6c872bd94a9b535593.tar.gz |
add version number format note to perldelta
Diffstat (limited to 'pod/perl5114delta.pod')
-rw-r--r-- | pod/perl5114delta.pod | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pod/perl5114delta.pod b/pod/perl5114delta.pod index d6c5974b53..d9f32769c5 100644 --- a/pod/perl5114delta.pod +++ b/pod/perl5114delta.pod @@ -22,6 +22,26 @@ XXX For a release on a stable branch, this section aspires to be: There are no changes intentionally incompatible with 5.XXX.XXX. If any exist, they are bugs and reports are welcome. +=head2 Version number formats + +Acceptable version number formats have been formalized into "strict" and +"lax" rules. C<package NAME VERSION> takes a strict version number. C<use +NAME VERSION> takes a lax version number. C<UNIVERSAL::VERSION> and the +L<version> 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<version> 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. + +The L<version> module adds C<version::is_strict> and C<version::is_lax> +functions to check a scalar against these rules. =head1 Core Enhancements |