Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #64 from yschensandiego/patch-2

return undef when reaching file end to avoid infinite loop
  • Loading branch information...
commit 7a9ff8ecadde93d73d7a9f21dc58a838a9e7791f 2 parents 74c88d2 + f623285
@fjossandon fjossandon authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  Bio/AlignIO/phylip.pm
View
3  Bio/AlignIO/phylip.pm
@@ -190,7 +190,8 @@ sub next_aln {
return;
}
}
-
+ return unless $seqcount and $residuecount;
+
# First alignment section. We expect to see a name and (part of) a sequence.
my $idlen = $self->idlength;
$count = 0;
Please sign in to comment.
Something went wrong with that request. Please try again.