Sub::ExporterSub::Exporter is a sophisticated exporter for custom-built routines. | |
Download |
Sub::Exporter Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Ricardo Signes
- Publisher web site:
- http://search.cpan.org/~rjbs/
Sub::Exporter Tags
Sub::Exporter Description
Sub::Exporter is a sophisticated exporter for custom-built routines. Sub::Exporter is a sophisticated exporter for custom-built routines.SYNOPSISSub::Exporter must be used in two places. First, in an exporting module: # in the exporting module: package Text::Tweaker; use Sub::Exporter -setup => { exports => , collectors => , };Then, in an importing module: # in the importing module: use Text::Tweaker 'squish', indent => { margin => 5 }, reformat => { width => 79, justify => 'full', -as => 'prettify_text' }, defaults => { eol => 'CRLF' };With this setup, the importing module ends up with three routines: squish, indent, and prettify_text. The latter two have been built to the specifications of the importer -- they are not just copies of the code in the exporting package. Requirements: · Perl
Sub::Exporter Related Software