I'm trying to create or replace a file with the contents of the textarea from an HTML form. I actually have it working okay except for a formatting problem.
The resulting file should have the same lines as the textarea information but it puts it all in one line.
I've tried putting the info into a variable (i.e. my $info = param("textareaname"
. When I write $info to a file it is all one line, no.
I've tried putting the info into an array (i.e. my @info = param("textareaname"
but that just results in $info[0] containing the whole text as one line and so writes it out as one line.
What I am doing is pulling an html file into the browser via a perl script and putting it into a textarea (correctly formatted) making changes and saving it back out with the changes. It all works but if you open the file in an editor it is all one long line and so not easy to debug.
Thanks for any help
The resulting file should have the same lines as the textarea information but it puts it all in one line.
I've tried putting the info into a variable (i.e. my $info = param("textareaname"
I've tried putting the info into an array (i.e. my @info = param("textareaname"
What I am doing is pulling an html file into the browser via a perl script and putting it into a textarea (correctly formatted) making changes and saving it back out with the changes. It all works but if you open the file in an editor it is all one long line and so not easy to debug.
Thanks for any help