Exporter::EasyExporter::Easy is a Perl module that takes the drudgery out of Exporting symbols. | |
Download |
Exporter::Easy Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Fergal Daly
- Publisher web site:
- http://search.cpan.org/~fdaly/Test-NoWarnings-0.084/lib/Test/NoWarnings.pm
Exporter::Easy Tags
Exporter::Easy Description
Exporter::Easy is a Perl module that takes the drudgery out of Exporting symbols. Exporter::Easy is a Perl module that takes the drudgery out of Exporting symbols.SYNOPSISIn module YourModule.pm: package YourModule; use Exporter::Easy ( OK => # symbols to export on request );In other files which wish to use YourModule: use ModuleName qw(frobnicate); # import listed symbols frobnicate ($left, $right) # calls YourModule::frobnicateExporter::Easy makes using Exporter easy. In it's simplest case it allows you to drop the boilerplate code that comes with using Exporter, so require Exporter; use base qw( Exporter ); use vars qw( @EXPORT ); @EXPORT = ( 'init' );becomes use Exporter::Easy ( EXPORT => );and more complicated situations where you use tags to build lists and more tags become easy, like this use Exporter::Easy ( EXPORT => , TAGS => , read => , write => , misc => , all => , no_misc => , ], OK => , );This will set @EXPORT, @EXPORT_OK, @EXPORT_FAIL and %EXPORT_TAGS in the current package, add Exporter to that package's @ISA and do a use vars on all the variables mentioned. The rest is handled as normal by Exporter. Requirements: · Perl
Exporter::Easy Related Software