Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pdl::exporter(3pm) [debian man page]

Exporter(3pm)						User Contributed Perl Documentation					     Exporter(3pm)

NAME
PDL::Exporter - PDL export control DESCRIPTION
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. SYNOPSIS
use PDL::Exporter; use PDL::MyModule; # Import default function list ':Func' use PDL::MyModule ''; # Import nothing (OO) use PDL::MyModule '...'; # Same behaviour as Exporter 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 module 1; # end of simple module SEE ALSO
Exporter AUTHOR
Copyright (C) Karl Glazebrook (kgb@aaoepp.aao.gov.au). Some docs by Christian Soeller. All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the copyright notice should be included in the file. perl v5.14.2 2012-01-02 Exporter(3pm)

Check Out this Related Man Page

PDL(3)							User Contributed Perl Documentation						    PDL(3)

NAME
PDL - the Perl Data Language DESCRIPTION
(For the exported PDL constructor, pdl(), see PDL::Core or pdl[2]) PDL is the Perl Data Language, a perl extension that is designed for scientific and bulk numeric data processing and display. It extends perl's syntax and includes fully vectorized, multidimensional array handling, plus several paths for device-independent graphics output. For basic information on the PDL language, see the pdl(1) (lowercase) man page. You can run PDL programs directly as perl scripts that include the PDL module (with "use PDL;"), or via an interactive shell (see the perldl(1) man page). The PDL language extension includes about a dozen perl modules that form the core of the language, plus additional modules that add further functionality. The perl module "PDL" loads all of the core modules automatically, making their functions available in the current perl namespace. See also PDL::Lite or PDL::LiteF if start-up time becomes an issue. EXPORTS: "use PDL;" exports a large number of routines into the calling namespace. If you want to avoid namespace pollution, you must instead "use PDL::Lite", and include any additional modules explicitly. NICESLICE: Note that the PDL::NiceSlice syntax is NOT automatically loaded by "use PDL;". If you want to use the extended slicing syntax in a standalone script, you must also say "use PDL::NiceSlice;". PDL::Math: The PDL::Math module has been added to the list of modules for versions later than 2.3.1. Note that PDL::Math is still not included in the Lite and LiteF start-up modules. SYNOPSIS
use PDL; # Is equivalent to the following: use PDL::Core; use PDL::Ops; use PDL::Primitive; use PDL::Ufunc; use PDL::Basic; use PDL::Slices; use PDL::Bad; use PDL::MatrixOps; use PDL::Math; use PDL::Version; use PDL::IO::Misc; use PDL::IO::FITS; use PDL::IO::Pic; use PDL::Lvalue; perl v5.12.1 2010-01-01 PDL(3)
Man Page