Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: "warn" is your best friend

by kcott (Archbishop)
on Mar 23, 2014 at 05:37 UTC ( #1079428=note: print w/replies, xml ) Need Help??


in reply to "warn" is your best friend

G'day snax,

Welcome back after your decade-long sabbatical.

Yes, I agree warn can be quite handy in this sort of situation. It also allows you to quickly search your code for development debugging statements and, for production code, remove them, comment them out, or even convert them for whatever standard debugging/logging system is being used.

While I'm sure you're aware of it, I thought I'd just point out carp() and cluck() (from the built-in Carp module). These also output to STDERR and, depending on your requirements, may produce more useful information.

-- Ken

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2022-08-08 23:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?