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
#!/usr/bin/perl -w use strict; use Bio::SeqIO; my $file = $ARGV[0]; for (my $trial = 1; $trial <=2; $trial++) { open INFILE, "<$file" or die "$0: Can't open file $file: $!"; seek(INFILE,0,0); #This is line 10 print "Trial $trial\n"; my $i =1; my $in = Bio::SeqIO->new(-format => 'fasta', -fh => \*INFILE); while( my $seq = $in->next_seq ) { print $i++, " : ", $seq->seq(), "\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: How to avoid using array in concatenating string of multiple lines
by monkfan (Curate) on Dec 10, 2004 at 08:57 UTC |