in reply to Base sequence length in fasta format file

Perhaps you could explain what a "base" is?
The code makes little sense...
my $base = ("A"|"C"|"G"|"T"); # what is this? $base is now 'W' #... foreach $base ($sequence){ # $sequence is a scalar, not an array #... }
--perlplexer