in reply to FCGI Print line number where exited?
Try adding this at the top of the program:
END{ warn join ' ', caller() } [download]
By judiciuos use of a loop and the argument to caller you could get a full traceback.