Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.24 KB | None | 0 0
  1. #!/usr/bin/env perl
  2. use warnings;
  3. use 5.014;
  4. use lib "/home/kaiyin/bin";
  5. use wrappers;
  6.  
  7. my $dna = "ATCGTTGAATGCAAATGACATGAC";
  8. while ($dna =~ /\G(\w\w\w)*?TGA/g) {  # note the minimal *?
  9.    print "Got a TGA stop codon at position ", pos $dna, "\n";
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement