I got this from one friend
####
#!/usr/bin/perl
use strict;
use warnings;
use CGI ':standard';
my $mytextarea = param('mytextarea');
print "Content-type: text/html\n\n";
print "$mytextarea";
####
"Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: *.pl"