note
ack
<p>I used a similar idea but did as follows:<c>
my $file = '...the OPs File example..." #used as a string
# to simplify my
# test
my @gi_ids = $file =~/gi\|(\d+)\|/g;
</c><p> That leaves the list <c>@gi_ids</c> containing all of the gi id's that were in the string (i.e., it finds 4 gi id's in the OPs example).</p><p>Just another possible strategy. It looks to me like all of the respondents' ideas would work fine. Mine is just another variation.</p><p>Hope that helps.</p><!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-638334">
ack
Albuquerque, NM
</div></div>
774362
774368