|P is for Practical|
problem with extra lines when usingby belize (Deacon)
|on Aug 14, 2001 at 19:18 UTC||Need Help??|
belize has asked for the wisdom of the Perl Monks concerning the following question:
I have a form that is using the POST method to add to a flat file database.
The parse subroutine uses the following lines:
I am having trouble because the output has far too many "returns" placed in it.
I am previewing the output prior to adding to the database by placing the values into another form. But, the "returns" (\n) are continually multiplied with each preview/modify so that what is finally printed into the flatfile has far to much space between what should only be paragraphs.
I placed print statements before and after the above lines and here is the output:
Now, when I submit the preview form, the space between paragraphs is doubled. And if I use a modify form, the space is again doubled.
Can you explain what is going on?