On Tue, 7 Jul 2015 07:27:49 -0700 (PDT)
Ron Bergin <[email protected]> wrote:
> Using a DEBUG constant and assigning its value via an environment
> variable are both common, but has a drawback and would not be my
> choice of approach. I prefer to use a lexical var (with file scope)
> and assign it via command line option.
Using a variable has the drawback that the debug code is compiled.
Using a constant sub means the debug code is not compiled.
--
Don't stop where the ink does.
Shawn
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/