ExporterSection: User Contributed Perl Documentation (3)Updated: 2002-05-21 |
ExporterSection: User Contributed Perl Documentation (3)Updated: 2002-05-21 |
Hopefully will be extended to allow fine control of which namespace is used.
use PDL::MyModule; # Import default function list ':Func' use PDL::MyModule ''; # Import nothing (OO) use PDL::MyModule '...'; # Same behaviour as Exporter
package PDL::MyMod;
use strict; use vars qw($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 module
1; # end of simple module