That fails if there are any less-thans, greater-thans, or ampersands in the text.
And HTML has no equivalent to our <code> tags. {grin}
So, you need to entitize the file. If you've got
LWP installed, that's
trivial. See the snippet I just added:
Convert text file to HTML.
-- Randal L. Schwartz, Perl hacker