PDA

View Full Version : Help


ear1less
07-22-2000, 08:37 AM
I am writing a program in Perl and ran into a problem maybe someone can help me with.

I have a textarea feild in my perl program called file1a. When I try to store the info enterd it stores it like this ( all ran together)
This is a test. Thank You

Instead of like this,

This is a test.

Thank You

What is happening is all the blank lines are removed and all the text entered is run together in 1 big sentance. When I store the input.

I know that this has got to be simple but I am pulling my hair out.

Thanks for any help Given.

Jim

Titan
07-29-2000, 02:29 PM
well some more info or a test url would be a little more helpfull...

but are you printing it as $form{'whatever'}
and have a form data subroutine?
???

reply or drop me an email...I'll help if I can...

Henrik
08-31-2000, 04:38 AM
Well, the linebreaking should remain there.
But it's not stored with html's <BR>. Instead it's stored with an ASCII newline character '\n'. If you want to convert these to HTML just do something like this:

$foo =~ s/\n/<BR>/g;