PDL
view release on metacpan or search on metacpan
lib/PDL/AutoLoader.pm view on Meta::CPAN
This module implements a MatLab style AutoLoader for PDL. If an unknown
function C<func()> is called, PDL looks for a file called C<func.pdl>.
If it finds one, it compiles the file and calls the function C<func>.
The list of directories to search in is given by the shell environment
variable C<PDLLIB>. This is a colon-separated list of directories. On
MSWindows systems, is it a I<semicolon> -separated list of directories.
For example, in csh:
setenv PDLLIB "/home/joe/pdllib:/local/pdllib"
B<Note>: This variable is unrelated to Perl's C<PERL5LIB>.
If you add a leading '+' on a directory name, PDL will search the
entire directory tree below that point. Internally, PDL stores the
directory list in the variable C<@PDLLIB>, which can be modified at
run time.
For example, in csh:
setenv PDLLIB "+/home/joe/PDL"
will search /home/joe/PDL and all its subdirectories for .pdl files.
=head2 AUTO-SCANNING
The variable C<$PDL::AutoLoader::Rescan> controls whether files
are automatically re-scanned for changes at the C<perldl>
command line.
If C<$PDL::AutoLoader::Rescan == 1> and the file is changed
( run in 0.671 second using v1.01-cache-2.11-cpan-6aa56a78535 )