Exporter::WithBase - Like Exporter, but add '-base' to declare a child class
# file Mother.pm package Mother; use Exporter::WithBase; our @EXPORT = qw<ONE>; use constant ONE => 1; ... # file Child.pm package Child; # instead of: use parent 'Mother' use Mother -base; print ONE, "\n";
Does the same things as Exporter, but also supports a -base flag. That flag can be used in the use statement of a class to push the class into @ISA.
-base
use
@ISA
import::Base, parent, Mojo:Base.
Olivier Mengué, mailto:dolmen@cpan.org.
Copyright © 2012 Olivier Mengué.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Exporter::WithBase, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Exporter::WithBase
CPAN shell
perl -MCPAN -e shell install Exporter::WithBase
For more information on module installation, please visit the detailed CPAN module installation guide.