Exporter::Easy
Details
| Size: | 9K |
| Last Update: | 2008-06-02 23:42:55 |
| Version: | 0.16 |
| OS Support: | Linux |
| License/Program Type: | Perl Artistic License |
| Publisher: | Fergal Daly |
| Price: | $0.00 |
Description:
Exporter::Easy 0.16 is libraries software developed by Fergal Daly.
Exporter::Easy is a Perl module that takes the drudgery out of Exporting symbols.
SYNOPSIS
In module YourModule.pm:
package YourModule;
use Exporter::Easy (
OK => [ '$munge', 'frobnicate' ] 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::frobnicate
Exporter::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 => [ 'init' ] );
and more complicated situations where you use tags to build lists and more tags become easy, like this
use Exporter::Easy (
EXPORT => [qw( init :base )],
TAGS => [
base => [qw( open close )],
read => [qw( read sysread readline )],
write => [qw( print write writeline )],
misc => [qw( select flush )],
all => [qw( :base :read :write :misc)],
no_misc => [qw( :all !:misc )],
],
OK => [qw( some other stuff )],
);
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 0.16 supports english interface languages and works with Linux.
Downloading Exporter::Easy 0.16 will take several seconds if you use fast ADSL connection.
0 comments
Add to
Exporter::Easy Version History
Related Software
|
|
From category: Bug-Tracking |
| Cspot 0.0.5 is bug tracking software developed by Petr Susil. Cspot is a semantic annotator designed only for the C programming language. It is quite similar to cscope, but some more functionality.... |
|
|
From category: Code-Generators |
| eAccelerator 0.9.5 is code generators software developed by Dominique Karg. eAccelerator is a further development from mmcache PHP Accelerator & Encoder. eAccelerator increases performance o... |
|
|
From category: Perl-Modules |
| SQL::YASP is a SQL parser and evaluator.... |
|
|
From category: Assembler-Tools |
| cm Compilation Manager 0.5.1 is assembler tools software developed by Aaron Kimball. cm Compilation Manager is a new tool for build automation and compilation management. cm Compilation Manager add... |
|
|
From category: Quality-Assurance-and-Testing |
| AntiCutAndPaste 1.4 is quality assurance and testing software developed by ACNP Software. AntiCutAndPaste is designed to search for text fragments that have been copied and pasted in programming la... |
|
|
From category: Interpreters |
| bc 1.06 is interpreters software developed by Philip A. Nelson. bc is an arbitrary precision numeric processing language. Syntax is similar to C, but differs in many substantial areas. It supports... |
|
|
From category: Libraries |
| acpi.py 0.3.1 is libraries software developed by Tilo Riemer. acpi.py provides an platform-independent and uniform interface to ACPI. Installation: Linux 2.4 / 2.6 The Linux im... |
|
|
From category: Libraries |
| Access_user Class 1.92 is libraries software developed by FinalWebSites. Access_user Class is an easy to use system for protecting pages and registering users. The main features are user login, use... |
|
|
From category: Libraries |
| csoap 1.1.0 is libraries software developed by Ferhat Ayaz. csoap is a SOAP client/server library in pure C. csoap is a fast and easy way to embed a SOAP client or a SOAP server into an appl... |
|
|
From category: Libraries |
| Basilisk Live CD 1.40 is libraries software developed by Linux4all. This is a fedora core 3 based Livecd with KDE 3.3.1, Gnome 2.8, OpenOffice, Fire- and Thunderbird and a lot of other tools.... |
|
|
From category: Libraries |
| Bio::AlignIO::msf 1.4 is libraries software developed by Peter Schattner. Bio::AlignIO::msf is a Perl module with msf sequence input/output stream. SYNOPSIS Do not use this module dir... |
|
|
From category: Libraries |
| Bio::GMOD 0.28 is libraries software developed by Todd W. Harris. Bio::GMOD is a unified API for Model Organism Databases. SYNOPSIS Check the installed version of a MOD use Bio::... |
|
|
From category: Perl-Modules |
| Net::DSML::filter.pm is a Perl module that supplies a Net::DSML::Filter object that is used by a Net::DSML object.... |
|
|
From category: Libraries |
| commonc++ 0.2 is libraries software developed by Mark Lindner. commonc++ project is a C++ class library for developing cross-platform systems software for POSIX and Windows systems. It provi... |
|
|
From category: Libraries |
| Apache Lucene 2.0 is libraries software developed by Doug Cutting. Apache Lucene is a high-performance, full-featured text search engine library written entirely in Java. Apache Lucene is a... |
Leave a comment