while() { chomp; if ($_=~ m/\>/) { } elsif ($_!~ m/\>/) { push @lengths, length($_); } }