Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 scrutinizing the Monastery: (3)
As of 2024-04-19 05:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found