in reply to Converting Text Files
Note: Don't forget to convert '<' to the HTML-safe equivalent '<' before printing the HTML.print "<TABLE>\n"; while (<FILE>) { chomp; print "<TR>", (map { $_ =~ s/</</g; "<TD>$_</TD>" } split (/\|/)), "</TR>\n"; } print "</TABLE>\n";
|
|---|