in reply to Optimize debugging subs

danb--

Perhaps a compromise based on something like the following attempt? (Disclaimer: I've not tried this, nor have I ever used Deparse...)

use constant DBG => 0; . . . DBG && print "Any debugging statement\n";
If it works, it has the advantage that you can use a larger range of debug helper type statements after the && operator...

--roboticus

Replies are listed 'Best First'.
Re^2: Optimize debugging subs
by danb (Friar) on Apr 05, 2006 at 04:24 UTC
    Thanks for the suggestion, but that is just as inelegant.

    --Dan