No such thing as a small change | |
PerlMonks |
RE: RE: Easy, elemental, but cool debug trick.by ask (Pilgrim) |
on May 25, 2000 at 13:43 UTC ( [id://14724]=note: print w/replies, xml ) | Need Help?? |
Just always use warn "foobar" if $DEBUG instead of print,
then it will do the right thingtm under both mod_cgi and
mod_perl.
For logging you should take a look at the Log::Agent module
available on CPAN.
In Section
Meditations
|
|