if ($sorted_values =~ m/INSERT_PATTERN_HERE/) { # Do stuff... }