in reply to removing debugging code at compile time ?
use constant DEBUG => $ENV{DEBUG_ME} || 0;
that way i can switch debugging on just by setting an environment variable.