diff options
author | Ricardo SIGNES <rjbs@cpan.org> | 2009-01-26 09:53:51 -0500 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-02-07 14:57:05 +0100 |
commit | 003db2bd2e42353866adbc9b4f1ad5f829a2b43b (patch) | |
tree | b85cfba0a7e18b8ad936459f3340e3b56a301994 /lib/UNIVERSAL.pm | |
parent | 7fee2b4cbff01fe23cb8ddca87276ca9899b0fe3 (diff) | |
download | perl-003db2bd2e42353866adbc9b4f1ad5f829a2b43b.tar.gz |
pare down docs of UNIVERSAL in perlobj
Diffstat (limited to 'lib/UNIVERSAL.pm')
-rw-r--r-- | lib/UNIVERSAL.pm | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/UNIVERSAL.pm b/lib/UNIVERSAL.pm index 6c756652fa..1adef7a2a2 100644 --- a/lib/UNIVERSAL.pm +++ b/lib/UNIVERSAL.pm @@ -68,7 +68,7 @@ is a package name =item C<$obj> -is a blessed reference or a string containing a package name +is a blessed reference or a package name =item C<CLASS> @@ -154,6 +154,14 @@ You may call C<can> as a class (static) method or an object method. Again, the same rule about having a valid invocant applies -- use an C<eval> block or C<blessed> if you need to be extra paranoid. +B<NOTE:> C<can> directly uses Perl's internal code for method lookup, and +C<isa> uses a very similar method and cache-ing strategy. This may cause +strange effects if the Perl code dynamically changes @ISA in any package. + +You may add other methods to the UNIVERSAL class via Perl or XS code. +You do not need to C<use UNIVERSAL> to make these methods +available to your program (and you should not do so). + =item C<VERSION ( [ REQUIRE ] )> C<VERSION> will return the value of the variable C<$VERSION> in the |