NAME
basis - use base with import call
VERSION
Version 0.01
SYNOPSIS
Similar to base:
package Baz;
use basis qw/Foo bal/;
DESCRIPTION
It uses Sub::Uplevel to do the construct
BEGIN {
use base qw/Foo bal/;
Foo->import;
bal->import;
};
or the other way around
use base qw/Foo bal/;
use Foo; use bal;
transparently for the parent and child class.
IMPORTANT NOTE
The call of Sub::Uplevel might come to late, so the uplevel call will not work If you use this module, the same rule as for Sub::Uplevel applies:
Use Sub::Uplevel as early as possible in your program.
AUTHOR
Sebastian Knapp, <sk at computer-leipzig.com>
BUGS
Please report any bugs or feature requests to bug-basis at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=basis. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
ACKNOWLEDGEMENTS
Thank you Michael G. Schwern for base and Sub::Uplevel. I hope this tiny addon finds your blessing. Thank David A Golden for maintenance of Sub::Uplevel.
SEE ALSO
COPYRIGHT & LICENSE
Copyright 2006 Computer-Leipzig, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.