Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Translate debug code to a debugging technique

by Prior Nacre V (Hermit)
on Oct 02, 2004 at 05:38 UTC ( [id://395829]=note: print w/replies, xml ) Need Help??


in reply to Translate debug code to a debugging technique

You could call cluck() conditionally based on the value of $^D. Something as simple as ( $^D || cluck() ) may suffice.

See both perlrun and perldebug for a number of gotchas with this method.

Regards,

PN5

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2025-06-24 16:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.