#!/usr/bin/perl -w
use strict;
open IN,"seq.fasta" or die $!;
open OUT,">seqlessthan30.fa" or die $!;
while(
chomp;
my $name=$_;
chomp(my $seq=
chomp(my $strand=
chomp(my $qual=
next if(length($seq)>30);
print OUT join("\n",($name,$seq,$strand,$qual)),"\n";
}