Fixing a syntax error (missing "
);" in the
renderPartReadView line, substituting the embedded sub calls by their string representation, I got a table like
| renderPartListView($cgi) |
| pageHeader($cgi, $lca_dbm, $am) |
| renderPartReadView($cgi, $lca_dbm, $am) |
|
I'm still not sure where your problem resides. Assuming for now that renderPartListView returns an arrayref, and rather then seeing something like this:
| part1 |
part2 |
part3 |
| pageHeader($cgi, $lca_dbm, $am) |
| renderPartReadView($cgi, $lca_dbm, $am) |
|
you would more like this:
| part0 |
| pageHeader($cgi, $lca_dbm, $am) |
| renderPartReadView($cgi, $lca_dbm, $am) |
|
| part1 |
| part2 |
???
Well, it can be done… but is likely to obscure your programm even further.
"Easiest" way I see (in the sense that you only make 1 local change) is introducing another table [:-/] for the left part, as in:
|
| pageHeader($cgi, $lca_dbm, $am) |
| renderPartReadView($cgi, $lca_dbm, $am) |
|
To achieve that, replace the call to renderPartListView with the following:
$cgi->table( map{ $cgi->Tr($cgi->td($_) ) } @{renderPartListView($cgi)} )