Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $refseq_list ="/home/bla/bla/refseq.txt"; open(REF,$refseq_list); my($ref,@ref,$size,$command1); while($ref=<REF>) { push(@ref,$ref); } $size = @ref; print "$size sequences found\n"; my $count=0; LOOP:foreach $ref(@ref) { print "in foreach loop\n"; $count=0; $command1 = qq{select tax_id from gene2acc where genomic_ac_ver= '$r +ef'; }; $sth1=$dbh->prepare($command1); $sth1->execute() or die $sth1->errstr; my($tax_id); $sth1->bind_columns(undef,\$tax_id ); while($array=$sth1->fetchrow_array()) { $count++; if($sth1->rows == 0) { print "No records matched for $ref\nn"; } elsif($count==1) { $t=$array; print "Entering taxID_format with $t\n"; #&taxID_format($t); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: dbi retieve single col value
by pjotrik (Friar) on Aug 28, 2008 at 11:07 UTC | |
by Anonymous Monk on Aug 28, 2008 at 13:03 UTC | |
|
Re: dbi retieve single col value
by gone2015 (Deacon) on Aug 28, 2008 at 11:24 UTC | |
|
Re: dbi retieve single col value
by Tux (Canon) on Aug 28, 2008 at 12:59 UTC | |
by gone2015 (Deacon) on Aug 28, 2008 at 17:00 UTC | |
by Anonymous Monk on Aug 28, 2008 at 13:24 UTC | |
by Anonymous Monk on Aug 28, 2008 at 13:26 UTC | |
by Tux (Canon) on Aug 28, 2008 at 15:00 UTC |