Perhaps a compromise based on something like the following attempt? (Disclaimer: I've not tried this, nor have I ever used Deparse...)
If it works, it has the advantage that you can use a larger range of debug helper type statements after the && operator...use constant DBG => 0; . . . DBG && print "Any debugging statement\n";
--roboticus
In reply to Re: Optimize debugging subs
by roboticus
in thread Optimize debugging subs
by danb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |