#match can be used like a boolean T/F if($text =~ m/this/) { blah ...}