in reply to Catching perl warnings and errors
will print$ perl -Mstrict -e '$test = "foo"'
to the console, butGlobal symbol "$test" requires explicit package name at -e line 1. Execution of -e aborted due to compilation errors.
will print the error to file ./error.log. Check your shell's manpage for details on redirecting STDERR.$ perl -Mstrict -e '$test = "foo"' 2> error.log
hope this helps,
Update: as for using syslog to log the errors, I don't know if you can do this, since as far as I can remember, you use a specific system call to do that: syslog(3).
Update #2: a quick question in #debian @ freenode.net and I have something else: check the logger command, which is a "shell command interface to the syslog(3) system log module" (from the manpage).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Catching perl warnings and errors
by hotshot (Prior) on May 26, 2003 at 08:33 UTC | |
by CukiMnstr (Deacon) on May 26, 2003 at 14:29 UTC |