No such thing as a small change | |
PerlMonks |
Re: using constants to trigger debug codeby liz (Monsignor) |
on Jun 04, 2004 at 20:03 UTC ( [id://361184]=note: print w/replies, xml ) | Need Help?? |
To further what the other monks already said.
When using constants with debugging, I'm usually using an environment variable to signal the level of debugging info required, with variations on the following code:
If this code is run with -MO=Deparse, you get: If you set the environment variable FOO_DEBUG to 1, you get:
Hope this helps. Liz
In Section
Seekers of Perl Wisdom
|
|