Linux SoftwareProgrammingLibrariesExporter::Easy 0.16

Exporter::Easy 0.16


Exporter::Easy is a Perl module that takes the drudgery out of Exporting symbols. SYNOPSIS In module YourModule.pm: package
Developer:   Fergal Daly
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   9K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


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
    tags exporter easy  use exporter  and more  easy export  @export @export  exporter use  yourmodule use  using exporter  use vars  

    Download Exporter::Easy 0.16


     http://ftp.hostingromania.ro/Linux/mirrors/ftp.cpan.org/authors/id/F/FD/FDALY/Exporter-Easy-0.16.tar.gz


    Authors software

    Exporter::Easy 0.16 (by Fergal Daly)
    Exporter::Easy is a Perl module that takes the drudgery out of Exporting symbols.

    SYNOPSIS

    In module YourModule.pm:
    package

    Code::Perl 0.03 (by Fergal Daly)
    Code::Perl is a Perl module to produce Perl code from a tree.

    SYNOPSIS

    use Code::Perl::Expr qw( :easy );

    my $c = derefh(

    Test::Tester::Capture 0.103 (by Fergal Daly)

    Test::Tester::CaptureRunner 0.103 (by Fergal Daly)


    Similar software

    Exporter::Easy 0.16 (by Fergal Daly)
    Exporter::Easy is a Perl module that takes the drudgery out of Exporting symbols.

    SYNOPSIS

    In module YourModule.pm:
    package

    BBDB::Export 0.012 (by wu)
    BBDB::Export is a Perl module to export data from The Insidious Big Brother Database.

    SYNOPSIS

    use BBDB::Export;

    # expor

    Sub::Exporter::Tutorial 0.970 (by Ricardo SIGNES)
    Sub::Exporter::Tutorial is a friendly guide to exporting with Sub::Exporter.

    What's an Exporter?

    When you use a module, first i

    Sub::Exporter 0.970 (by Ricardo SIGNES)
    Sub::Exporter is a sophisticated exporter for custom-built routines.

    SYNOPSIS

    Sub::Exporter must be used in two places

    Password Exporter 1.0.4 (by Justin Scott)
    Password Exporter is a Thunderbird extension that allows you to export and import your saved passwords and rejected sites between com

    Test::Builder 0.64 (by chromatic and Michael G Schwern)
    Test::Builder is a backend for building test libraries.

    SYNOPSIS

    package My::Test::Module;
    use Test::Builder;
    require E

    PSA::Test::Builder 0.49_01 (by chromatic and Michael G Schwern)
    PSA::Test::Builder is a backend for building test libraries.

    SYNOPSIS

    package My::Test::Module;
    use PSA::Test::Builder;

    GENE Graph Export Engine 0.3 (by Martin Vysny)
    GENE Graph Export Engine is an advanced XML exporter.

    GENE Graph Export Engine is a complex convertor/framework for multi-namespac

    JasperReports 1.2.8 (by Teodor Danciu)

    Class::ObjectTemplate 0.7 (by Jason E. Stewart)


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags