Guest User

trying to learn perl6

a guest
Dec 29th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #!/usr/bin/perl6
  2. use v6;
  3. my $s = slurp('mprt');
  4. my $urlbase = "http://uniprot.org/uniprot/";
  5. my $ext = ".fasta";
  6.  
  7. my %proteinhash = gather for $s.match(
  8. rx/^^ (<[_A..Z0..9]>*) \n /,
  9. :g
  10. ) {
  11. #at this point i need to read the uniprot ids in, assign a key to each one, and also pass that id as a string to wget; what wget returns will be stripped and assigned as the value
  12.  
  13. #shell("wget $urlbase$id$ext")
  14. }
  15.  
  16. $cat mprt
  17. A2Z669
  18. B5ZC00
  19. P07204_TRBM_HUMAN
  20. P20840_SAG1_YEAST
Add Comment
Please, Sign In to add comment