![]() |
|
Don't ask to ask, just ask | |
PerlMonks |
problems using dynamic tables in perl cgiby polki (Novice) |
on May 13, 2009 at 13:28 UTC ( #763750=perlquestion: print w/replies, xml ) | Need Help?? |
polki has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys,
I'm having a problem with Perl CGI creating tables of previously unknown length.
This is what the doc says about the usage:
From this I followed, that the Tr command takes a hash as first parameter and an array containing the tds as second parameter. Please correct me if I'm wrong there. Now that's what I did ($c is my CGI object): I pushed several values onto an array Later the same day: print $c->table( {-border=>'0',-align=>'Center'}, $c->Tr({-align=>'Left'}, @rows) ); Unfortunately the result is no nice table, but instead a flat table with all values in one row... So where is the crash in my thoughts?
Back to
Seekers of Perl Wisdom
|
|