use CGI qw(:cgi-lib :standard); print "Content-type: text/html\n\n"; my $seq = param('sequence'); $/ = ">"; chomp $seq; my ($defLine, @seqLines) = split /\n/, $seq;