We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a490d0 commit b62f395Copy full SHA for b62f395
categories/rosalind/dbpr-grondilu.pl
@@ -23,7 +23,12 @@
23
use LWP::Simple;
24
25
sub MAIN(Str $id = "Q5SLP9") {
26
- for split "\n", LWP::Simple.get(qq{http://www.uniprot.org/uniprot/$id.txt}) {
+ my $base-path = $*PROGRAM_NAME.IO.dirname;
27
+ my $id-fname = $base-path ~ "/$id.txt";
28
+ my $input = $id-fname.IO.e
29
+ ?? $id-fname.IO.slurp
30
+ !! LWP::Simple.get(qq{http://www.uniprot.org/uniprot/$id.txt});
31
+ for split "\n", $input {
32
if / GO\; .* \sP\: (.*?)\;/ {
33
say $/[0].Str
34
}
0 commit comments