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

Heikki Lehvaslaiho lehvasla@ebi.ac.uk
Thu, 31 May 2001 06:09:13 +0100 (BST)


Youlian,

When developing CGI scripts it really useful to have 

use CGI::Carp "fatalsToBrowser";

line in the beginning of your script.

	-Heikki

On Wed, 30 May 2001, Pan, Youlian wrote:

> 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
>  
> 
> 
> 
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l@bioperl.org
> http://bioperl.org/mailman/listinfo/bioperl-l
> 

______ _/      _/_____________________________________________________
      _/      _/                      http://www.ebi.ac.uk/mutations/
     _/  _/  _/  Heikki Lehvaslaiho          heikki@ebi.ac.uk
    _/_/_/_/_/  EMBL Outstation, European Bioinformatics Institute
   _/  _/  _/  Wellcome Trust Genome Campus, Hinxton
  _/  _/  _/  Cambs. CB10 1SD, United Kingdom
     _/      Phone: +44 (0)1223 494 644   FAX: +44 (0)1223 494 468
___ _/_/_/_/_/________________________________________________________