earcam has asked for the wisdom of the Perl Monks concerning the following question:
I have OO modules (for mod_perl) and once in production certain expensive checks can (and need to) be omitted. Is there something that allows blocks of code in PM files to be ignored if another something is set in calling scripts? I don't want to add loads of tests for a global var. Something in POD maybe? I'd greatly appreciate any help or pointers. thanks, earcam#ifdef DEBUG ... #endif
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Conditional Interpretation?
by ikegami (Patriarch) on Feb 01, 2006 at 03:13 UTC | |
|
Re: Conditional Interpretation?
by ptum (Priest) on Feb 01, 2006 at 03:00 UTC | |
|
Re: Conditional Interpretation?
by gryphon (Abbot) on Feb 01, 2006 at 03:06 UTC | |
by ikegami (Patriarch) on Feb 01, 2006 at 03:14 UTC | |
|
Re: Conditional Interpretation?
by blazar (Canon) on Feb 01, 2006 at 11:53 UTC | |
|
Re: Conditional Interpretation?
by glasswalk3r (Friar) on Feb 01, 2006 at 13:50 UTC | |
|
Re: Conditional Interpretation?
by salva (Canon) on Feb 01, 2006 at 14:54 UTC | |
|
Re: Conditional Interpretation?
by earcam (Initiate) on Feb 01, 2006 at 23:40 UTC |