Unix/Linux Go Back    

RedHat 9 (Linux i386) - man page for pdl::exporter (redhat section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

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

       PDL::Exporter - PDL export control

       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.

       use PDL::Exporter;

	use PDL::MyModule;	 # Import default function list ':Func'
	use PDL::MyModule '';	 # Import nothing (OO)
	use PDL::MyModule '...'; # Same behaviour as Exporter

       "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 illus-
       trated by an example. The following shows typical usage near the top of a simple PDL mod-

	  package PDL::MyMod;

	  use strict;

	  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


       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 dis-
       tribution. If this file is separated from the PDL distribution, the copyright notice
       should be included in the file.

perl v5.8.0				    2002-05-21				      Exporter(3)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 06:44 PM.