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;
That way I don't have to worry about actually modifying the code in order to change how much debug info is logged.

-- vek --