1UNIVERSAL::isa(3)     User Contributed Perl Documentation    UNIVERSAL::isa(3)
2
3
4

NAME

6       UNIVERSAL::isa - Attempt to recover from people calling UNIVERSAL::isa
7       as a function
8

SYNOPSIS

10               # from the shell
11               echo 'export PERL5OPT=-MUNIVERSAL::isa' >> /etc/profile
12
13               # within your program
14               use UNIVERSAL::isa;
15

DESCRIPTION

17       Whenever you use "isa" in UNIVERSAL as a function, a kitten using
18       Test::MockObject dies. Normally, the kittens would be helpless, but if
19       they use UNIVERSAL::isa (the module whose docs you are reading), the
20       kittens can live long and prosper.
21
22       This module replaces "UNIVERSAL::isa" with a version that makes sure
23       that, when called as a function on objects which override "isa", "isa"
24       will call the appropriate method on those objects
25
26       In all other cases, the real "UNIVERSAL::isa" gets called directly.
27

WARNINGS

29       If the lexical warnings pragma is available, this module will emit a
30       warning for each naughty invocation of "UNIVERSAL::isa". Silence these
31       warnings by saying:
32
33               no warnings 'UNIVERSAL::isa';
34
35       in the lexical scope of the naughty code.
36

SEE ALSO

38       UNIVERSAL::can for a more mature discussion of the problem at hand.
39
40       Test::MockObject for one example of a module that really needs to over‐
41       ride "isa()".
42

AUTHORS

44       Autrijus Tang <autrijus@autrijus.org>
45
46       chromatic <chromatic@wgz.org>
47
48       Yuval Kogman <nothingmuch@woobling.org>
49
51       Same as Perl, (c) 2005 - 2006.
52
53
54
55perl v5.8.8                       2008-01-02                 UNIVERSAL::isa(3)
Impressum