in reply to
Making debug a little more intelligent
I usually use an environment variable to control debugging. This means I can do this in my code:
my $DEBUG = $ENV{DEBUG} || 0;
[download]
That way I don't have to worry about actually modifying the code in order to change how much debug info is logged.
--
vek
--
Comment on
Re: Making debug a little more intelligent
Download
Code
In Section
Seekers of Perl Wisdom