Jonathan Vanasco wrote: > on this topic, please forgive my ignorance... > > don't both those settings relate to mod_perl internals?
Oh, yes, very much internal indeed.
> i typically just to a
>
> use constant DEBUG__myvar => 1 ;
>
> and
> DEBUG__myvar && print STDERR "my debug crap"
>
> in my code to handle debugging my apps. in one of the books, it said
> that anything like this:
> use constant DEBUG__myvar => 0;
> if ( DEBUG__myvar ){
> # debug crap
> }
> wouldn't be compiled by startup.pl, so there wouldn't be any runtime
> performance hit if debugging is coded in like that and a constant
> turned it off.
More accuratly, it will be *compiled* at startup, but it will then
be *optimized* away by the optimizer. End result is 0 runtime performance
hit, that's right.
--------------------------------------------------------------------------------
Philippe M. Chiasson m/gozer\@(apache|cpan|ectoplasm)\.org/ GPG KeyID : 88C3A5A5
http://gozer.ectoplasm.org/ F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3A5A5
signature.asc
Description: OpenPGP digital signature
