From a3e88ad7b21876c5341fd043218d0725ec4c4fcb Mon Sep 17 00:00:00 2001 From: John Peacock Date: Thu, 8 Dec 2011 20:55:37 -0500 Subject: 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 --- lib/UNIVERSAL.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/UNIVERSAL.pm') diff --git a/lib/UNIVERSAL.pm b/lib/UNIVERSAL.pm index 4e4122362a..1adf09c272 100644 --- a/lib/UNIVERSAL.pm +++ b/lib/UNIVERSAL.pm @@ -1,6 +1,6 @@ package UNIVERSAL; -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 C<$VERSION> or C is not a "lax" version number (as defined by the L module). +The return from C will actually be the stringified version object +using the package C<$VERSION> scalar, which is guaranteed to be equivalent +but may not be precisely the contents of the C<$VERSION> scalar. If you want +the actual contents of C<$VERSION>, use C<$CLASS::VERSION> instead. + C can be called as either a class (static) method or an object method. -- cgit v1.2.1