Skip to content

Commit 6ee4669

Browse files
committed
GLR fixes such that prob009-gerdr-feeds.pl, sseq-grondilu.pl and subs-grondilu.pl pass
1 parent 07cf4eb commit 6ee4669

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

categories/euler/prob009-gerdr-feeds.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@
4343
==> $result;
4444

4545
# print result
46-
$result.say;
46+
$result.[0].say;
4747

4848
# vim: expandtab shiftwidth=4 ft=perl6

categories/rosalind/sseq-grondilu.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ ($input-file = Nil)
2525
my ($dna, $search) = $input-file ?? $input-file.IO.lines !! @default-data;
2626

2727
my $pos = 0;
28-
say gather for $search.comb -> $c {
28+
my @arr = gather for $search.comb -> $c {
2929
$dna ~~ m:c($pos)/$c/;
3030
take $pos = $/.from + 1;
3131
}
32+
say "{@arr}"
3233
}
3334

3435
# vim: expandtab shiftwidth=4 ft=perl6

categories/rosalind/subs-grondilu.pl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
sub MAIN($input-file = Nil) {
2525
my ($S, $t) = $input-file ?? $input-file.IO.lines !! @default-data;
26-
say gather for $S.match(/$t/, :overlap) { take 1+.from };
26+
my @arr = gather for $S.match(/$t/, :overlap) { take 1+.from };
27+
say "{@arr}"
2728
}
2829

2930
# vim: expandtab shiftwidth=4 ft=perl6

0 commit comments

Comments
 (0)