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)} )
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.