Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[rosalind] nwck-grondilu.pl GLR fix and rosalind.t passes
  • Loading branch information
stmuk committed Sep 24, 2015
1 parent 944e941 commit 1d0e3ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions categories/rosalind/nwck-grondilu.pl
Expand Up @@ -37,7 +37,7 @@

sub MAIN($input-file = Nil) {
my $input = $input-file ?? $input-file.IO.slurp !! $default-data;
say gather for $input.lines -> $newick, $taxa, $ {
say gather for $input.lines.list -> $newick, $taxa, $ {
my ($a, $b) = $taxa.split: ' ';
my @token = $newick.comb: rx/ <.ident>+ | <[(),]> /;
Mu while @token.shift ne $a|$b;
Expand All @@ -51,7 +51,7 @@ ($input-file = Nil)
if /< , ( >/ { $descents++ }
}
take $climbs + $descents;
}
}.join(" ");
}

# vim: expandtab shiftwidth=4 ft=perl6

0 comments on commit 1d0e3ae

Please sign in to comment.