Hi Rob,
my @arr=qw(fry ring apple law); print "Enter the string you are searching for:"; chomp(my $search=<STDIN>); # you may have to check, if input is not string >>I don't understand your comment. The input from stdin has to be a >>string - it cannot be anything else. the input from stdin could be anything, but I was only making it clear for the user to know that since what we are searching for is a string, he can take the code further, to ensure that a string is inputted in the search scalar element. Regards, Timothy.