die if /match_to_die/; if (/match_if_something/) { #do something }