Keep It Simple, Stupid | |
PerlMonks |
Re: Translate debug code to a debugging techniqueby Prior Nacre V (Hermit) |
on Oct 02, 2004 at 05:38 UTC ( [id://395829]=note: print w/replies, xml ) | Need Help?? |
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
In Section
Seekers of Perl Wisdom
|
|