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

SUMMARY

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
32          # For Perl 5.6:
33          use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
34          # For more modern Perls:
35          our ($VERSION, @ISA, @EXPORT, @EXPORT_OK, %EXPORT_TAGS);
36
37          require PDL::Exporter;
38
39          @ISA = qw(PDL::Exporter);
40          @EXPORT_OK = qw(inc myfunc); # these will be exported by default
41          %EXPORT_TAGS = (Func=>[@EXPORT_OK],
42                          Internal => [qw/internfunc1 internfunc2/],
43                         );
44
45           # ... body of your module
46
47          1; # end of simple module
48

SEE ALSO

50       Exporter
51

AUTHOR

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