if ($line =~ m/\xDB/) { # $line contains character 219 (0xDB in hex) }