Here's the source code for a Perl CGI textarea example (a Perl form example). The Perl code below shows how you can display an HTML form with a textarea field, using the Perl CGI.pm module. The first time this script is called it displays a textarea field in a form. After you submit the form, this script displays the text that you entered in the textarea field.
Here's the source code for this Perl CGI.pm script, which generates a textarea in an HTML form: