As the other monks here have said, the
Perl debugger is what you're looking for and will let you step through the program interactively. As an aside, for a better alternative to prints and dumps, I've come to love
Smart::Comments.
__________
Systems development is like banging your head against a wall...
It's usually very painful, but if you're persistent, you'll get through it.