Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Perl -connecting to DB taking query input from user

by kielstirling (Scribe)
on Mar 06, 2013 at 01:51 UTC ( [id://1021927]=note: print w/replies, xml ) Need Help??


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

Replies are listed 'Best First'.
Re^2: Perl -connecting to DB taking query input from user
by MVRS (Acolyte) on Mar 06, 2013 at 02:05 UTC
    Insted of giving Where strainName = 'xxxxx'in the query , i want to give it as the user input

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1021927]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2025-05-21 04:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.