diff options
author | Larry Wall <lwall@sems.com> | 1996-08-10 15:24:58 +0000 |
---|---|---|
committer | Larry Wall <lwall@sems.com> | 1996-08-10 15:24:58 +0000 |
commit | 760ac839baf413929cd31cc32ffd6dba6b781a81 (patch) | |
tree | 010ae8135426972c27b065782284341c839dc2a0 /pod/perlobj.pod | |
parent | 43cc1d52f97c5f21f3207f045444707e7be33927 (diff) | |
download | perl-760ac839baf413929cd31cc32ffd6dba6b781a81.tar.gz |
perl 5.003_02: [no incremental changelog available]
Diffstat (limited to 'pod/perlobj.pod')
-rw-r--r-- | pod/perlobj.pod | 17 |
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 |