- print? (is this too obvious?)
- Carp?
- check Data::Dumper, for complex structures
- check Devel::Peek, for what's going on behind each variables
- Do you really want to print things on screen? it might just comes and goes. If later you change your mind, do something like:
open(STDOUT, ">", stdout.txt);
open(STDERR, ">", stderr.txt);
- so you haven't tried perl -d? well, try it
| [reply] [d/l] |
I like to use warn ( or carp ) since that lets me easily separate the debugging output from the program output when running on the command line.
| [reply] [d/l] [select] |
| [reply] |
I think you are looking for something like the Perl interactive debugger, or the Active State Perl IDE environment with integrated debugger. Since I don't use either, I'm sorry, but I cannot be of more help. Good luck! | [reply] |
I'm a heavy user of the ActiveState KOMODO IDE. There is a free version to try and I think it works very well (not only for Perl, but also for XML, XSLT, HTML, PHP, ...). It integrates the PERL-debugger and shows your output in a scrollable window. CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
| [reply] |