Perl Data Language

From ACENET
(Redirected from PDL)
Jump to: navigation, search
Description
PDL turns Perl in to a free, array-oriented, numerical language similar to IDL and MatLab.
Usage
First, load the modulefile to get access to the additionally installed Perl modules like so:
$ module load perl
You can access the Perl module by adding the following lines into your Perl scripts:
use PDL;
If you want to enable the interactive PDL shell, create the file .perldlrc with the following content:
use lib "/usr/local/perl_modules/PDL/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/";

use PDL;
use PDL::Dbg;  # Enable useful commands
use PDL::AutoLoader;
#use PDL::Lite; # Alternative to above for hard-core freaks

# PDL waffle options (and pacify -w)
BEGIN{
   $PDL::debug = $PDL::debug = 0;
   $PDL::verbose = $PDL::verbose = 1;
}

if ( $PERLDL::TERM->ReadLine() =~ /::Perl$/ ) {
   if ( defined $readline::rl_MaxHistorySize ) {
      $readline::rl_MaxHistorySize = $PERLDL::HISTFILESIZE;
   }
}

use PDL::Doc::Perldl; # online docs module

1;