A good tool to have for debugging is
ptkdb. You will need to install
Tk prior to that. Both modules can be easily installed by invoking
ppm install module_name at the
DOS prompt. I found this to be the most useful debugging tool for Perl.
You may also want to look at
Begin Perl for Bioinformatics book by James Tisdall.