Update UNIVERSAL::VERSION POD to reflect reality.
This should have been done when version objects were originally
added to the core back in 5.10.0. Mea culpa.
[I bumped UNIVERSAL.pm version and added a perldelta entry. -- DG]
Signed-off-by: David Golden <email@example.com>
Loading branch information
2 changed files
and 1 deletion.
@@ -1,6 +1,6 @@
our $VERSION = ; '1. 10 '
our $VERSION = ; '1. 11 '
# UNIVERSAL should not contain any extra subs/methods beyond those
# that it exists to define. The use of Exporter below is a historical
@@ -168,6 +168,11 @@ it will do a comparison and die if the package version is not
greater than or equal to C<, or if either REQUIRE> C< or $VERSION> C< REQUIRE>
is not a "lax" version number (as defined by the L<version> module).
The return from C< will actually be the stringified version object VERSION>
using the package C< scalar, which is guaranteed to be equivalent $VERSION>
but may not be precisely the contents of the C< scalar. If you want $VERSION>
the actual contents of C<, use $VERSION> C< instead. $CLASS::VERSION>
C< can be called as either a class (static) method or an object VERSION>
@@ -310,6 +310,12 @@ the locales: ja, ko, zh__big5han, zh__gb2312han, zh__pinyin, zh__stroke.
Now Locale/*.pl files are searched in @INC.
+L<UNIVERSAL> has been upgraded from version 1.10 to 1.11.
+Documentation change clarifies return values from UNIVERSAL::VERSION.
=head2 Removed Modules and Pragmata