{ my $foo = 42; # do more with $foo here } # $foo is no longer in scope here #### use constant DEBUG => 0; ... if (DEBUG) { # This code will not be compiled }