[Bioperl-l] Bio::Tools::Genscan

Pan, Youlian Youlian.Pan@nrc.ca
Wed, 30 May 2001 18:15:33 -0300


Hello,

I am new to Bioperl and writing-up a parser using some of Bioperl modules
for my thesis work at Canadian Bioinformatics Resource in Halifax.  I have
used Bio::Tools::Genscan, it worked fine when I invoke my perl script on
command line in Unix, but when I try to print to a web browser (IE or
netscape), I am not able to see anything after I use Bio::Tools::Genscan. 

Follow are part of my code:

##########################################################

..............

print "Content-type: text/html\n\n";
print "this is a test\n";
@exons =  get_exons();

........................

sub get_exons {
    print "<br>I am in the get exons\n";
    $genscan = Bio::Tools::Genscan->new(-file => 'result.genscan');
    print "<br> I am after Genscan<br>\n";
..................

    return @exons;
}

Print out on browser: 
           this is a test 
           I am in the get exons

Print out at UNIX:
            Content-type: text/html

            this is a test 
            I am in the get exons 
            I am after Genscan
            ..................
           
############################################################

Could anyone explain this discrepancy?

Thanks.

Youlian Pan