[Bioperl-l] Simplifications now possible with Perl 5.6.1 requirement?

Torsten Seemann torsten.seemann at infotech.monash.edu.au
Mon Sep 25 23:45:28 EDT 2006


Now that we are confirmed that Perl 5.6.1 is a minimum requirement The
bioperl-live code base could be simplified somewhat. Below are some 
major examples. Any thoughts, comments, additions ?

-----
our $x; # or my $x (where appropriate)
# instead of
use vars ($x); BEGIN { $x=... };

-----
use base qw(Bio::Class);
# instead of
use vars qw(@ISA); @ISA=qw(Bio::Class);

----
use Test;
BEGIN { plan tests => 42 }
# instead of
use lib './';
BEGIN {
     eval { require Test; };
     if ( $@ ) { use lib 't'; }
     use Test;
     plan tests => 42;
}

----
open my $FH, '>', $infile
# instead of
open FH, ">$infile";

----
Please contribute to http://www.bioperl.org/wiki/Bioperl_Best_Practices

-- 
Dr Torsten Seemann               http://www.vicbioinformatics.com
Victorian Bioinformatics Consortium, Monash University, Australia



More information about the Bioperl-l mailing list