change the =~ macro to not execute the body if the match fails