in reply to Re^2: How to avoid using array in concatenating string of multiple lines
in thread How to avoid using array in concatenating string of multiple lines OR How To Read FASTA
will read until the end of the filehandle. (That is why the loop ended in the first place). So subsequently calling next_seq on the $in object will give you the error mesg you are seeing. You canwhile( my $seq = $in->next_seq ) { print $i++, " : ", $seq->seq(), "\n"; }
my @seqs; while(my $s = $in->next_seq ) { push @seqs, $s; } # now do your loop of trials
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to avoid using array in concatenating string of multiple lines
by monkfan (Curate) on Dec 11, 2004 at 05:29 UTC | |
by stajich (Chaplain) on Dec 12, 2004 at 15:32 UTC |