PDL::Exporter3pm
Pdl export control
Usage
use PDL::Exporter;
use PDL::MyModule; # Import default function list ':Func'use PDL::MyModule ''; # Import nothing (OO)use PDL::MyModule '...'; # Same behaviour as Exporter
Overview
Implements the standard conventions for import of PDL modules in to the namespace
Hopefully will be extended to allow fine control of which namespace is used.
Summary
"PDL::Exporter" is a drop-in replacement for the Exporter module. It confers the standard PDL export conventions to your module. Usage is fairly straightforward and best illustrated by an example. The following shows typical usage near the top of a simple PDL module:
package PDL::MyMod;use strict;# For Perl 5.6:use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);# For more modern Perls:our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);require PDL::Exporter;@ISA = qw(PDL::Exporter);@EXPORT_OK = qw(inc myfunc); # these will be exported by default%EXPORT_TAGS = (Func=>[@EXPORT_OK],Internal => [qw/internfunc1 internfunc2/],);# ... body of your module1; # end of simple module
Releases
15 releases since Debian 2.0 (Hamm); the text changed 14 times.