1Exporter(3)           User Contributed Perl Documentation          Exporter(3)
2
3
4

NAME

6       PDL::Exporter - PDL export control
7

DESCRIPTION

9       Implements the standard conventions for import of PDL modules in to the
10       namespace
11
12       Hopefully will be extended to allow fine control of which namespace is
13       used.
14

SYNOPSIS

16       use PDL::Exporter;
17
18        use PDL::MyModule;       # Import default function list ':Func'
19        use PDL::MyModule '';    # Import nothing (OO)
20        use PDL::MyModule '...'; # Same behaviour as Exporter
21

DESCRIPTION

23       "PDL::Exporter" is a drop-in replacement for the Exporter module. It
24       confers the standard PDL export conventions to your module.  Usage is
25       fairly straightforward and best illustrated by an example. The
26       following shows typical usage near the top of a simple PDL module:
27
28          package PDL::MyMod;
29
30          use strict;
31          use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
32
33          require PDL::Exporter;
34
35          @ISA = qw(PDL::Exporter);
36          @EXPORT_OK = qw(inc myfunc); # these will be exported by default
37          %EXPORT_TAGS = (Func=>[@EXPORT_OK],
38                          Internal => [qw/internfunc1 internfunc2/],
39                         );
40
41           # ... body of your module
42
43          1; # end of simple module
44

SEE ALSO

46       Exporter
47

AUTHOR

49       Copyright (C) Karl Glazebrook (kgb@aaoepp.aao.gov.au).  Some docs by
50       Christian Soeller.  All rights reserved. There is no warranty. You are
51       allowed to redistribute this software / documentation under certain
52       conditions. For details, see the file COPYING in the PDL distribution.
53       If this file is separated from the PDL distribution, the copyright
54       notice should be included in the file.
55
56
57
58perl v5.12.3                      2009-10-17                       Exporter(3)
Impressum