Try the perl debugger.
Update: and perldoc perldebug, of course.
In reply to Re: perl option by qq in thread perl option to trace execution by Anonymous Monk