Hi zentara,
Thank you very much for your comments. I just updated the sheet to include your suggestions. Below is a sample 'perldlrc' file for those interested
Cheers,
lin0
# $HOME/.perldlrc
#
# startup file for perldl shell
#
# This file must be placed in your home directory.
# perldl will look for it during start-up to load
# default modules, set shell variables, etc.
# If this file is not present, perldl will look for
# PDL/default.perldlrc.
# The advantage of using .perldlrc, is that you can
# choose which modules to load by default
#
# Note: local defaults can be set using a file named
# local.perldlrc
#
# For more information, please, have a look at:
# http://pdl.sourceforge.net/PDLdocs/perldl.html
#
# Commands from the default startup for perldl shell.
use PDL;
use PDL::Dbg; # Enable useful commands
# PDL waffle options (and pacify -w)
BEGIN{
$PDL::debug = $PDL::debug = 0;
$PDL::verbose = $PDL::verbose = 1;
}
use PDL::Doc::Perldl; # online docs module
#
# Some modules to load by default.
# Feel free to add or delete modules from the list
#
use PDL::Graphics::PGPLOT; ## use 2D plotting package
use PDL::Graphics::PGPLOT::Window;
use PDL::Graphics::TriD; ## use 3D plotting package
use PDL::Image2D;
#
# Loading the AutoLoader module that implements a MatLab
# style AutoLoader for PDL. If a unknown function 'func()'
# is called then a file 'func.pdl' is searched for and if
# found is read in to define 'func()' which is then executed.
# The environment variable PDLLIB defines the search path
# used when looking for the file 'func.pdl'
# e.g. in bash:
# export PDLLIB=/home/lmr/pdllib:/local/pdllib
# in csh:
# setenv PDLLIB "/home/lmr/pdllib:/local/pdllib"
#
use PDL::AutoLoader;
$PDL::AutoLoader::Rescan = 1; # Rescan .pdl files each time a prompt
+goes out
#
# Set up perldl shell special variables
#
$PERLDL::MULTI = 1; # Accept multi-line perl blocks
$PERLDL::NO_EOF = 1; # Prevent from accidentally exiting perldl by ty
+ping ^D
#
# Greeting...
#
print "\nWelcome back!\n";
print "\nType 'help' or '?' for basic help.\n";
1; # Successful completion
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Outside of code tags, you may need to use entities for some characters:
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
|
|