in reply to Debugging a program

Learn to use the perl debugger, you'll be glad you did. Also, I've recently discovered Smart::Comments, which is still so much more svelt than print statements.