Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Automatic trace statements in program

by Masem (Monsignor)
on Mar 20, 2001 at 22:44 UTC ( [id://65777] : note . print w/replies, xml ) Need Help??

in reply to Automatic trace statements in program

Your next best friend is warn - if something goes weird, but not enough to kill the script, you can have your script warn "Something's not right, at line " . __LINE__ . " in file " . __FILE__;, and include any other debugging information. This all gets sent to STRERR, which if you are running as a cronjob, will be sent via mail or other options to the user that that job belongs to.
Dr. Michael K. Neylon - || "You've left the lens cap of your mind on again, Pinky" - The Brain