sub foo { log_msg("In subroutine foo") if $DEBUG }