in reply to Displaying carriage returns
As monkey_boy said, this really is an HTML question. And his suggestion of putting <pre> ... </pre> tags around it is a very good idea.
You could also use <p> tags before every new paragraph. Or <br>, to cause a line break.
By the way, you really should check the result of opening files; eg.:
open (FILE, "c:/perl/directory.xml") or die "Can't read file 'director +y.xml' ($!)\n";
|
|---|