in reply to inlined DEBUG constant versus $DEBUG

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

  • Comment on Re: inlined DEBUG constant versus $DEBUG