Beefy Boxes and Bandwidth Generously Provided by pair Networks
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??


in reply to (jcwren) RE: Easy, elemental, but cool debug trick.
in thread Easy, elemental, but cool debug trick.

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.
  • Comment on RE: RE: Easy, elemental, but cool debug trick.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://14724]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-25 06:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found