in reply to Converting Text Files

You might want to put it into tables, in which case it's pretty easy:
print "<TABLE>\n"; while (<FILE>) { chomp; print "<TR>", (map { $_ =~ s/</&lt;/g; "<TD>$_</TD>" } split (/\|/)), "</TR>\n"; } print "</TABLE>\n";
Note: Don't forget to convert '<' to the HTML-safe equivalent '&lt;' before printing the HTML.