in reply to Cleaning up CGI input Data

You should use CGI.pm.
use CGI; my $q = new CGI; print $q->param('foo');
where 'foo' is the name of your textarea field.