in reply to Is adding print lines the only way to go to find computational error in a scrpt?
No. Perl has a built-in debugger for that.
Get more details from perldoc perldebug.
Originally posted as a Categorized Answer.