darkreaper00
Technical User
Here's my snippet of code:
My output is inevitably
The /Genomic/ line is proof that
works, and I definitely have lines that contain "mRNA:" at the front and "/gb=xxxxx" inside -- in fact, if I simply tell it to find that, I don't have a problem. I realize that I could (and probably will) fix this by making it search for mRNA, and then putting the /gb=/ inside an if statement with the die as an else condition, but I really would like to know why what I have doesn't work -- it really stumps me.
Code:
else {
$_=shift(@tony) until (/Genomic: .*\|([\dyxpq_])+[Tt]el/);
print STDERR "6.5 ";
$telomere = $1; print STDERR "7 ";
$_=shift(@tony) until (m!mRNA: .*/gb=([\w]+)!)
or die("eep! mrna $h doesn't have a genbank accession! you lose!");
#....
}
My output is inevitably
Code:
6.5 7 eep! mrna 2 doesn't have a genbank accession! you lose!
Code:
shift until...