in reply to regex: finding something followed explicitly by a dot
if($filecontents =~ /$word/smg) { [download]
if($filecontents =~ /\Q$word/smg) { [download]