in reply to Re: debug statements
in thread debug statements

Log4perl is great.
Look here for a gentle introduction. The raw module docs might scare ya off if your current needs are modest.

andyford
or non-Perl: Andy Ford