in reply to Re^4: tabular format of data
in thread tabular format of data
I use qq|| to quote the string to avoid problems with border="1"print qq|<table border="1">\n|; foreach my $line (@data) { print qq|<tr>|; print qq|<td>$_</td>| for @$line; print qq|</tr>\n|; } print qq|</table>\n|;
though you're probably better off using a module as you will find yourself doing this kind of thing often<table border="1"> <tr><td>A</td><td>B</td></tr> <tr><td>C</td><td>D</td></tr> </table>
|
|---|