use constant DEBUG => 1; print "Test something" if (DEBUG); #### use constant DEBUG => 1; DEBUG("Test something");