in reply to Perl -connecting to DB taking query input from user
I don't understand?? But have noticed that you are passing $Strain with a \n on it. Try
see perldoc -f chompchomp(my $Strain = <>);
In Section
Seekers of Perl Wisdom