in reply to Re: writing array element to a file
in thread writing array element to a file
What's the problem?use strict; use warnings; my $infile = "rep_set_ass_tax.fna"; my $outfile = "seq_id.txt"; open(IN, ">>", "rep_set_ass_tax.fna") or die "Died!!"; while (my $line=<IN>) { if($line=~/>(\d+)/) { print $1 . "\n"; } }
close IN;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: writing array element to a file
by poj (Abbot) on Apr 25, 2013 at 14:16 UTC |