http://www.perlmonks.org?node_id=1021927


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
chomp(my $Strain = <>);
see perldoc -f chomp