diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-06-23 09:25:39 -0700 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-06-23 09:25:39 -0700 |
commit | 53592368bc35a3b75c2799630c2217ecc669d0e5 (patch) | |
tree | 5aa30012b789c66223400baf6ccfb2de3d91afd3 /lib | |
parent | 8fe93936db45e3d3a0f61cac7ba3d6c569ab711a (diff) | |
download | perl-53592368bc35a3b75c2799630c2217ecc669d0e5.tar.gz |
Exporter’s docs: mention require_version, but honestly
Since Exporter supplies a require_version method, it does deserve a
mention in the docs.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Exporter.pm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Exporter.pm b/lib/Exporter.pm index 497cd34e99..f92d42d0d4 100644 --- a/lib/Exporter.pm +++ b/lib/Exporter.pm @@ -328,6 +328,10 @@ module into a call to C<< $module_name->VERSION($value) >>. This can be used to validate that the version of the module being used is greater than or equal to the required version. +For historical reasons, Exporter supplies a C<require_version> method that +simply delegates to C<VERSION>. Originally, before C<UNIVERSAL::VERSION> +existed, Exporter would call C<require_version>. + Since the C<UNIVERSAL::VERSION> method treats the C<$VERSION> number as a simple numeric value it will regard version 1.10 as lower than 1.9. For this reason it is strongly recommended that you use numbers |