Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct v. 3 release date
  • Loading branch information
bosborne committed Sep 4, 2011
1 parent 475083d commit cb0d07c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Bio/Tools/Run/Phylo/Phyml.pm
Expand Up @@ -296,7 +296,7 @@ Phyml before 3.0 did not display the version. Assume 2.44 when can not
determine it.
Some releases do not state version number, only date, so the
version has to be inferred from this date.
version might have to be inferred from this date.
=cut

Expand All @@ -309,8 +309,8 @@ sub version {
my ($version) = $string =~ /PhyML v([\d+\.]+)/;
if ( ! $version ) {
$string =~ /PhyML\s+(\d{8})/;
# 3 was released May 2009
$version = 3 if ( $1 && $1 >= 20090501 );
# 3 was released August 2008
$version = 3 if ( $1 && $1 >= 20080801 );
}
$self->{'_version'} = $version;
$version ? (return $version) : return '2.44'
Expand Down

0 comments on commit cb0d07c

Please sign in to comment.