UNIVERSAL::isa(3pm) - phpMan

Command: man perldoc info search(apropos)  


UNIVERSAL::isa(3pm)            User Contributed Perl Documentation            UNIVERSAL::isa(3pm)



NAME
       UNIVERSAL::isa - Attempt to recover from people calling UNIVERSAL::isa as a function

SYNOPSIS
               # from the shell
               echo 'export PERL5OPT=-MUNIVERSAL::isa' >> /etc/profile

               # within your program
               use UNIVERSAL::isa;

DESCRIPTION
       Whenever you use "isa" in UNIVERSAL as a function, a kitten using Test::MockObject dies.
       Normally, the kittens would be helpless, but if they use UNIVERSAL::isa (the module whose
       docs you are reading), the kittens can live long and prosper.

       This module replaces "UNIVERSAL::isa" with a version that makes sure that, when called as
       a function on objects which override "isa", "isa" will call the appropriate method on
       those objects

       In all other cases, the real "UNIVERSAL::isa" gets called directly.

WARNINGS
       If the lexical warnings pragma is available, this module will emit a warning for each
       naughty invocation of "UNIVERSAL::isa". Silence these warnings by saying:

               no warnings 'UNIVERSAL::isa';

       in the lexical scope of the naughty code.

SEE ALSO
       UNIVERSAL::can for a more mature discussion of the problem at hand.

       Test::MockObject for one example of a module that really needs to override "isa()".

AUTHORS
       Autrijus Tang <autrijus AT autrijus.org>

       chromatic <chromatic AT wgz.org>

       Yuval Kogman <nothingmuch AT woobling.org>

COPYRIGHT & LICENSE
       Same as Perl, (c) 2005 - 2006.



perl v5.8.8                                 2006-04-30                        UNIVERSAL::isa(3pm)

Generated by $Id: phpMan.php,v 4.49 2006/02/26 13:18:18 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2012-05-25 04:22 @38.107.179.236 Crawled by CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
Valid XHTML 1.0!Valid CSS!