in reply to Re^3: tabular format of data
in thread tabular format of data

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re^5: tabular format of data
by tangent (Parson) on Feb 18, 2012 at 01:54 UTC
    You haven't used JavaFan's example properly, look at it again.
    If you want to print a table using the same data structure, you could do:
    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|;
    I use qq|| to quote the string to avoid problems with border="1"
    Prints:
    <table border="1"> <tr><td>A</td><td>B</td></tr> <tr><td>C</td><td>D</td></tr> </table>
    though you're probably better off using a module as you will find yourself doing this kind of thing often
Re^5: tabular format of data
by Anonymous Monk on Feb 18, 2012 at 01:47 UTC