warn "foo is $foo"; #### use constant DEBUG => 1; ... warn "foo is $foo" if DEBUG; warn "bar is $bar" if DEBUG > 2; ...