in reply to Don't want to match nothing
if ($b ne "" && $a =~ /$b/) { print "found"; } else { print "not found"; } [download]