note
BrowserUk
<blockquote><i></i></blockquote>
<p>Define the debug code in your modules in terms of <c>::DEBUG</c>. Ie:<code>
package Some::Thing;
...
if( ::DEBUG ) {
## do debug stuff
}
</code>
<p>And in main:<code>
use constant DEBUG => 1; ## set to 0 to disable debug and have debug guarded code optimised away
use Some::Thing;
...
</code>
<div class="pmsig"><div class="pmsig-171588">
<hr />
<font size=1 >
<div>With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'</div>
<div>Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.</div>
<div>"Science is about questioning the status quo. Questioning authority". </div>
<div>In the absence of evidence, opinion is indistinguishable from prejudice.
</div>
</font>
</div></div>
1048862
1048862