I've posted questions similar to this before, but I can't find the thread, so I'll post it again here.
I've been converting an existing CGI script written in perl to make use of the CGI.pm perl module. I've been successful until I hit a Table being generated. I've been success using the start_table method to generate the initial table tag. Now, I have an array that contains all of the first rows table cells. I suspect that I should be able to give the TR method this array to allow it to generate the first row, here is the existing code that works just fine:
foreach (@DISPLAY_COLS) { print("<th valign=bottom>$COLUMN_TITLE{$_}</th>"); };
and here is what I've tried. It compiles, but at execute time, it simply stops at this point with no error reports that I can see:
print $cgi->tr([@COLUMN_TITLES]);
where $cgi was set initially to a CGI object. Can somebody help here. I would also like a reference to a good tutorial which talks about CGI.pm at this level. Most CGI.pm tutorials I've seen are just HTML-ized versions of the PERL doc inside of CGI.pm itself, which is of no help in this area.
In reply to How to use TR to generate a table row by kmullin5016
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |