SYNOPSIS

  package Bar;

  # DBI inherits from DynaLoader which inherits from AutoLoader
  # Bar wants to avoid this accidental inheritance of AutoLoader.
  use base qw(Class::WhiteHole DBI);

DESCRIPTION

Its possible to accidentally inherit an \s-1AUTOLOAD\s0 method. Often this will happen if a class somewhere in the chain uses AutoLoader or defines one of their own. This can lead to confusing error messages when method lookups fail.

Sometimes you want to avoid this accidental inheritance. In that case, inherit from Class::WhiteHole. All unhandled methods will produce normal Perl error messages.

BUGS & CAVEATS

Be sure to have Class::WhiteHole before the class from which you're inheriting \s-1AUTOLOAD\s0 in the \s-1ISA\s0. Usually you'll want Class::WhiteHole to come first.

If your class inherits autoloaded routines this class may cause them to stop working. Choose wisely before using.

White holes are only a hypothesis and may not really exist.

COPYRIGHT

Copyright 2000 Michael G Schwern <[email protected]> all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

Michael G Schwern <[email protected]>

RELATED TO Class::WhiteHole…

Class::BlackHole