Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Translate debug code to a debugging technique

by Prior Nacre V (Hermit)
on Oct 02, 2004 at 05:38 UTC ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2022-05-29 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (101 votes). Check out past polls.

    Notices?