Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Exporter 5.63

    Download button

    No screenshots available
    Downloads: 619  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    15 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Adriano Ferreira | More programs
    Perl Artistic License / FREE
    July 21st, 2008, 17:43 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Exporter description

    Exporter is a Perl module that implements default import method for modules.

    Exporter is a Perl module that implements default import method for modules.

    SYNOPSIS

    In module YourModule.pm:

    package YourModule;
    require Exporter;
    @ISA = qw(Exporter);
    @EXPORT_OK = qw(munge frobnicate); # symbols to export on request

    or

    package YourModule;
    use Exporter 'import'; # gives you Exporter's import() method directly
    @EXPORT_OK = qw(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

    Take a look at "Good Practices" for some variants you will like to use in modern Perl code.

    The Exporter module implements an import method which allows a module to export functions and variables to its users' namespaces. Many modules use Exporter rather than implementing their own import method because Exporter provides a highly flexible interface, with an implementation optimised for the common case.

    Perl automatically calls the import method when processing a use statement for a module. Modules and use are documented in perlfunc and perlmod. Understanding the concept of modules and how the use statement operates is important to understanding the Exporter.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    import method | import modules | Perl module | import | export | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM