in reply to HTML::Template-2 on one
The trick I think you're missing is that the data structure you're building isn't tied to where you get the data. Let's look at an example.
You have 5 resources. You want to display one row for each resource. The first column is the status and the second column is the last request. You will need to build an array of hashes to display everything within that TMPL_LOOP for the table. You pull your data in from each table into their own hashes. Then, you go ahead an build ANOTHER data structure, blending the two hashes from the different tables into the correct format.
You got the extract and you got the display. You were just missing the middle piece - transformation.
Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.
|
|---|