in reply to removing repeats
if ($word eq $prevword) { [download]
if ($word ne $prevword) { [download]