if ($line =~ /$partialword/i){ #SUBSTRING FOUND! } [download]
In reply to substr pattern matching by Anonymous Monk