summaryrefslogtreecommitdiff
path: root/pod/perlobj.pod
diff options
context:
space:
mode:
Diffstat (limited to 'pod/perlobj.pod')
-rw-r--r--pod/perlobj.pod17
1 files changed, 7 insertions, 10 deletions
diff --git a/pod/perlobj.pod b/pod/perlobj.pod
index 994edfe00e..acbd5314c8 100644
--- a/pod/perlobj.pod
+++ b/pod/perlobj.pod
@@ -295,11 +295,14 @@ C<can> checks to see if its object has a method called C<METHOD>,
if it does then a reference to the sub is returned, if it does not then
I<undef> is returned.
-=item require_version ( VERSION )
+=item VERSION ( [ VERSION ] )
+
+C<VERSION> returns the VERSION number of the class (package). If
+an argument is given then it will check that the current version is not
+less that the given argument. This method is normally called as a static
+method. This method is also called when the C<VERSION> form of C<use> is
+used.
-C<require_version> will check that the current version of the package
-is greater than C<VERSION>. This method is normally called as a static method.
-This method is also called when the C<VERSION> form of C<use> is used.
use A 1.2 qw(some imported subs);
@@ -322,12 +325,6 @@ class, false if its object is the class (package) itself. Example
$ref = bless [], 'A';
$ref->is_instance(); # True
-=item require_version ( [ VERSION ] )
-
-C<require_version> returns the VERSION number of the class (package). If
-an argument is given then it will check that the current version is not
-less that the given argument.
-
=back
B<NOTE:> C<can> directly uses Perl's internal code for method lookup, and