1Class::WhiteHole(3)   User Contributed Perl Documentation  Class::WhiteHole(3)
2
3
4

NAME

6       Class::WhiteHole - base class to treat unhandled method calls as errors
7

SYNOPSIS

9         package Bar;
10
11         # DBI inherits from DynaLoader which inherits from AutoLoader
12         # Bar wants to avoid this accidental inheritance of AutoLoader.
13         use base qw(Class::WhiteHole DBI);
14

DESCRIPTION

16       Its possible to accidentally inherit an AUTOLOAD method.  Often this
17       will happen if a class somewhere in the chain uses AutoLoader or
18       defines one of their own.  This can lead to confusing error messages
19       when method lookups fail.
20
21       Sometimes you want to avoid this accidental inheritance.  In that case,
22       inherit from Class::WhiteHole.  All unhandled methods will produce
23       normal Perl error messages.
24

BUGS & CAVEATS

26       Be sure to have Class::WhiteHole before the class from which you're
27       inheriting AUTOLOAD in the ISA.  Usually you'll want Class::WhiteHole
28       to come first.
29
30       If your class inherits autoloaded routines this class may cause them to
31       stop working.  Choose wisely before using.
32
33       White holes are only a hypothesis and may not really exist.
34
36       Copyright 2000 Michael G Schwern <schwern@pobox.com> all rights
37       reserved.  This program is free software; you can redistribute it
38       and/or modify it under the same terms as Perl itself.
39

AUTHOR

41       Michael G Schwern <schwern@pobox.com>
42

SEE ALSO

44       Class::BlackHole
45
46
47
48perl v5.12.0                      2003-05-28               Class::WhiteHole(3)
Impressum