Exporter

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

Exporter Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Adriano Ferreira
  • Publisher web site:
  • http://search.cpan.org/~ferreira/

Exporter Tags


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.SYNOPSISIn module YourModule.pm: package YourModule; require Exporter; @ISA = qw(Exporter); @EXPORT_OK = qw(munge frobnicate); # symbols to export on requestor package YourModule; use Exporter 'import'; # gives you Exporter's import() method directly @EXPORT_OK = qw(munge frobnicate); # symbols to export on requestIn other files which wish to use YourModule: use ModuleName qw(frobnicate); # import listed symbols frobnicate ($left, $right) # calls YourModule::frobnicateTake 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. Requirements: · Perl


Exporter Related Software