Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

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?

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2023-11-29 19:12 GMT
Find Nodes?
    Voting Booth?

    No recent polls found