[Bioperl-microarray] warning "Exiting subroutine via next at ..." in ArrayDesign.pm

Hongxian He hongxian at pcbi.upenn.edu
Mon Aug 16 17:33:24 EDT 2004


Hello, Allen:

I got the following warning message (hundreds of lines) when using the 
ArrayDesign module to parse a CDF file. (CVS version 1.6)

Exiting subroutine via next at 
/home/hongxian/lib/perl/lib/perl5/site_perl/5.8.0/Bio/Expression/Microarray/Affymetrix/ArrayDesign.pm 
line 209, <CDF> line 71804.
Exiting subroutine via next at 
/home/hongxian/lib/perl/lib/perl5/site_perl/5.8.0/Bio/Expression/Microarray/Affymetrix/ArrayDesign.pm 
line 209, <CDF> line 71845.
Exiting subroutine via next at 
/home/hongxian/lib/perl/lib/perl5/site_perl/5.8.0/Bio/Expression/Microarray/Affymetrix/ArrayDesign.pm 
line 209, <CDF> line 71846.


The warning came from the following subroutine. After googling a bit, I 
found out that the warning can be avoided by using "return" rather than 
"next" to exit from the subroutine. (Use 'next', 'redo', and 'last' to 
alter the execution path in loop construcs.)

sub load_data {
  my($self,$line) = @_;

  next unless $line;
 ...
}

Thanks,
Hongxian




More information about the bioperl-microarray mailing list