Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: Debug code out of production systems

by liz (Monsignor)
on Jan 26, 2004 at 08:20 UTC ( #324096=note: print w/ replies, xml ) Need Help??


in reply to Re: Debug code out of production systems
in thread Debug code out of production systems

Do you have any figures that show you have some form of "gain"?

No. I don't think there will be any chance of a gain until I rewrite the main conversion logic in XS. But I'm not in it for the gain of execution speed. I'm in it for the gain in the development cycle of a program.

use if 0, My::Module

Of course. But in that case I would prefer the idiom:

if (CONSTANTTOBEFALSE) { require My::Module; }
or, if execution of the import routine is necessary:
if (CONSTANTTOBEFALSE) { require My::Module; My::Module->import; }

I think that is much more descriptive of what is going on than the use of the if pragma.

Liz


Comment on Re: Re: Debug code out of production systems
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://324096]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2015-07-30 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls