summaryrefslogtreecommitdiff
path: root/lib/UNIVERSAL.pm
diff options
context:
space:
mode:
authorDavid Golden <dagolden@cpan.org>2010-01-19 10:14:32 -0500
committerDavid Golden <dagolden@cpan.org>2010-01-19 10:14:32 -0500
commitbd12309b58376140a53f4d708bb325f48df1ff70 (patch)
tree2ac25a970d843022f8bdf6c993fcd3d452d1f7bf /lib/UNIVERSAL.pm
parent916254008628ddf01ee5de6c872bd94a9b535593 (diff)
downloadperl-bd12309b58376140a53f4d708bb325f48df1ff70.tar.gz
note strict/lax version requirements in documentation
Diffstat (limited to 'lib/UNIVERSAL.pm')
-rw-r--r--lib/UNIVERSAL.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/UNIVERSAL.pm b/lib/UNIVERSAL.pm
index 35297431ec..d11b893db9 100644
--- a/lib/UNIVERSAL.pm
+++ b/lib/UNIVERSAL.pm
@@ -165,7 +165,9 @@ block or C<blessed> if you need to be extra paranoid.
C<VERSION> will return the value of the variable C<$VERSION> in the
package the object is blessed into. If C<REQUIRE> is given then
it will do a comparison and die if the package version is not
-greater than or equal to C<REQUIRE>.
+greater than or equal to C<REQUIRE>. Both C<$VERSION> or C<REQUIRE>
+must be "lax" version numbers (as defined by the L<version> module)
+or C<VERSION> will die with an error.
C<VERSION> can be called as either a class (static) method or an object
method.