in reply to removing debugging code at compile time ?

i'm using something like that:

use constant DEBUG => $ENV{DEBUG_ME} || 0;

that way i can switch debugging on just by setting an environment variable.