Save your Perl program in a file, say hello.pl.
To start the debugger, type the following command if you are
using the bash:
% PERL5LIB=~cs898n/pub/ptkdb; export PERL5LIB
% perl -I`echo ~cs898n/pub/ptkdb` -d:ptkdb hello.pl
If you are using the csh, you can set the
environment variable as follows:
% setenv PERL5LIB cs898n/pub/ptkdb
Note: You only need to set the environment variable once.
If you are using the bash, you can do
it by inserting the following line to the bash
startup file ~/.bash_profile:
PERL5LIB=~cs898n/pub/ptkdb; export PERL5LIB