hi guys,
i've a perl script which does fine when i execute it as follows on unix environment:
bash-2.05$ perl <scriptname>
But, when i used CGI to output the result a browser, i see nothing. can anyone plz check the following to see what's going on. i would appreciate it.
thanks
i've a perl script which does fine when i execute it as follows on unix environment:
bash-2.05$ perl <scriptname>
But, when i used CGI to output the result a browser, i see nothing. can anyone plz check the following to see what's going on. i would appreciate it.
Code:
!/usr/bin/perl
#use the CGI module
use CGI;
use Bio::Perl;
use Bio::SearchIO;
use Bio:B::GenPept;
####there are some more lines here
print STDOUT "<pre>";
print STDOUT "Performing BLAST....<br>may take few min.....\n";
system("blastall -p blastp -d nrpart -i $seq -o repo.bls");
my $in = new Bio::SearchIO(-format => 'blast', -file => 'repo.bls');
while( my $result = $in->next_result ) {
while( my $hit = $result->next_hit ) {
while( my $hsp = $hit->next_hsp ) {
if ( $hsp->evalue <= 0.001 ) {
print OUTFILE "Accession=",$hit->accession,"\tEvalue=",$hsp->evalue,"\tPercent_id=",$hsp->percent_identity, "\n";
push(@1array, $hit->accession);
}
}
}
}
my $genpeptdb = new Bio:B::GenPept();
my $seqio = Bio::SeqIO->new(-file => ">outputfilename", -format => 'fasta');
#### more lines follows
Comment