summaryrefslogtreecommitdiff
path: root/lib/UNIVERSAL.pm
diff options
context:
space:
mode:
authorRicardo SIGNES <rjbs@cpan.org>2009-01-26 09:54:57 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2009-02-07 14:57:05 +0100
commitba593fa967c44e6df4f1da861158e4bccc7bb768 (patch)
tree8a20d62ec6bc3bab8290801a1f2e8b6ba7861714 /lib/UNIVERSAL.pm
parent003db2bd2e42353866adbc9b4f1ad5f829a2b43b (diff)
downloadperl-ba593fa967c44e6df4f1da861158e4bccc7bb768.tar.gz
relocate "warnings" section of UNIVERSAL man page
Diffstat (limited to 'lib/UNIVERSAL.pm')
-rw-r--r--lib/UNIVERSAL.pm18
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/UNIVERSAL.pm b/lib/UNIVERSAL.pm
index 1adef7a2a2..891c784b76 100644
--- a/lib/UNIVERSAL.pm
+++ b/lib/UNIVERSAL.pm
@@ -154,14 +154,6 @@ 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
@@ -174,6 +166,16 @@ method.
=back
+=head1 WARNINGS
+
+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).
+
=head1 EXPORTS
None by default.