in reply to find words in array

$word = <STDIN>; chomp $word;

See also: