use constant DEBUG => 0; ... if (DEBUG) { # This code will not be compiled }