in reply to Re^2: How to convert a text file to a HTML file
in thread How to convert a text file to a HTML file
Hi
Thanks for your input. Now let me re-iterate my problem this way. Suppose I have simple a.txt(pasted below) file in my desktop. When I open that file on the browser by giving the unix path/windows path ...it comes in proper order and indentation.
But when I am reading this file in a string and inserting the string in a database column and later on using cgi perl printing it on the webpage , it gets messed up.
What magic is happening when I do print $htmldata in my cgi perl code so that it destroys the order and indentation of the text ?
name    phone
xyz    123
abc    890
But it is coming as :
name phone xyz 123 abc 890
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How to convert a text file to a HTML file
by RichardK (Parson) on Jan 25, 2013 at 13:14 UTC | |
Re^4: How to convert a text file to a HTML file
by marto (Cardinal) on Jan 25, 2013 at 12:51 UTC | |
Re^4: How to convert a text file to a HTML file
by ghosh123 (Monk) on Jan 25, 2013 at 13:04 UTC | |
by marto (Cardinal) on Jan 25, 2013 at 13:18 UTC |