![]() |
|
P is for Practical | |
PerlMonks |
Re: inlined DEBUG constant versus $DEBUGby bluto (Curate) |
on Sep 20, 2001 at 05:00 UTC ( [id://113508]=note: print w/replies, xml ) | Need Help?? |
I usually end up using the variable rather than the
constant since it's very easy to alter this using
a command line option (e.g. the ubiquitous '-d'). I hate
to edit code to get additional diagnostics printed
out for a program that is giving me problems (esp. on a
production machine). If the program is large and I have
a good logging mechanizm built in, then a constant is
usually fine though.
Just curious, does anyone know if there is an easy, clean way of doing this with 'use constant'? bluto
In Section
Meditations
|
|