JohnLucania
Programmer
use DBI;
...........
print "Enter the Gene Name: \n";
$ARGV[0] = <STDIN>;
print "Enter the organism: \n";
$ARGV[1] = <STDIN>;
print "Enter the exp level: \n";
$ARGV[2] = <STDIN>;
..............
my $st = "SELECT GENE.GENE_NAME, ORGANISM.ORGANISM_NAME, MRNA.MRNA_EXPRESSION_LEVEL";
$st .= " FROM GENE, ORGANISM, MRNA";
$st .= " WHERE GENE.GENE_ID = MRNA.MRNA_GENE_NAME AND ORGANISM_ID = MRNA.MRNA_ORGANISM AND
(GENE.GENE_NAME LIKE '$ARGV[0]' OR ORGANISM.ORGANISM_NAME LIKE '$ARGV[1]')
AND MRNA.MRNA_EXPRESSION_LEVEL =$ARGV[2] ";
Enter the Gene Name: U
Enter the organism: A
Enter the exp level:3
These three arguments (U, A, and 3) are qualified in the SQL (= works well in the SQL statement), but in this .pl, nothing returns. Why is that?
...........
print "Enter the Gene Name: \n";
$ARGV[0] = <STDIN>;
print "Enter the organism: \n";
$ARGV[1] = <STDIN>;
print "Enter the exp level: \n";
$ARGV[2] = <STDIN>;
..............
my $st = "SELECT GENE.GENE_NAME, ORGANISM.ORGANISM_NAME, MRNA.MRNA_EXPRESSION_LEVEL";
$st .= " FROM GENE, ORGANISM, MRNA";
$st .= " WHERE GENE.GENE_ID = MRNA.MRNA_GENE_NAME AND ORGANISM_ID = MRNA.MRNA_ORGANISM AND
(GENE.GENE_NAME LIKE '$ARGV[0]' OR ORGANISM.ORGANISM_NAME LIKE '$ARGV[1]')
AND MRNA.MRNA_EXPRESSION_LEVEL =$ARGV[2] ";
Enter the Gene Name: U
Enter the organism: A
Enter the exp level:3
These three arguments (U, A, and 3) are qualified in the SQL (= works well in the SQL statement), but in this .pl, nothing returns. Why is that?