Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
LCSQ with NativeCall
  • Loading branch information
grondilu committed Mar 2, 2013
1 parent 04215ab commit 52eed22
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rosalind/lcsq-grondilu.pl
@@ -0,0 +1,9 @@
use NativeCall;
sub lcsq(Str $, Str $ --> Str) is native('./lcsq') {*}

say lcsq |gather for slurp.match:
/ ^^ '>Rosalind_' <digit>+ \n (<[\nACGT]>*) /, :g {
take ~.[0].subst(/\n/,'', :g);
}

# vim: ft=perl6

0 comments on commit 52eed22

Please sign in to comment.