in reply to Newlines in textarea w/ CGI.pm

If you are still having trouble with this one, why not try this solution?

  1. Figure out how many characters are in a line of your text area by using the length of the textarea anf font size.
  2. When the data is passed in, insert line breaks in the appropriate places using a regex similar to this:
    my $length = 20; # Sample length text area line while ($textData =~ s/(.{$length})/$1\n/gcs) {}

Note: This isn't a particularly good solution, just an odd one.

-----------------------------------
Washizu
The best offense is a good offense.