Hi All,
I am using perl to get the data from the form fields and I have a text area from where if some one enters data like below:
"This is test
And this is also test
This is also test."
So here you can notify the text is entered with hitting of enter key to have the line break. But I am having the problem while saving the data entered in this field in a text file then there also it is saving with these line breaks(new lines) so if am trying to upload the file to the fields then it is saying that invalid file.
So I was thinking is there a way in perl to remove the new line character from the string while saving the form data. So that I will not have the problem while uploading.
Please let me know with some sample examples to solve this I will be waiting for all your valuable responses.
Thanks,
Chittaranjan :)
I am using perl to get the data from the form fields and I have a text area from where if some one enters data like below:
"This is test
And this is also test
This is also test."
So here you can notify the text is entered with hitting of enter key to have the line break. But I am having the problem while saving the data entered in this field in a text file then there also it is saving with these line breaks(new lines) so if am trying to upload the file to the fields then it is saying that invalid file.
So I was thinking is there a way in perl to remove the new line character from the string while saving the form data. So that I will not have the problem while uploading.
Please let me know with some sample examples to solve this I will be waiting for all your valuable responses.
Thanks,
Chittaranjan :)
Comment