24 Jul 2003 03:01:01 UTC
- Distribution: Class-WhiteHole
- Module version: 0.04
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (721 / 0 / 0)
- KwaliteeBus factor: 0
- 85.00% Coverage
- License: unknown
- Activity24 month
- Download (3.2KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMSCHWERN Michael G Schwern
Take me over?The maintainer of this distribution is looking for someone to take over! If you're interested then please contact them via email.
Class::WhiteHole - base class to treat unhandled method calls as errors
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);
Its possible to accidentally inherit an AUTOLOAD 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.
Be sure to have Class::WhiteHole before the class from which you're inheriting AUTOLOAD in the ISA. 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 2000 Michael G Schwern <email@example.com> all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Michael G Schwern <firstname.lastname@example.org>
Module Install Instructions
To install Class::WhiteHole, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Class::WhiteHole
For more information on module installation, please visit the detailed CPAN module installation guide.