You're missing the point. Sorting may be easier with TT, but H::T just prints out what you give it. Sort it before you hand it off to the View section. In other words, inflate your data, then sort it, then hand it off.
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
| [reply] |
I'm not missing the point at all! The whole point of my question was getting the structure in a pre-sorted form the HTML::Template can use.
| [reply] |
You're still missing the point I'm trying to make. The sequence of events should go something like this:
- Determine what constraints there are on the data
- Get the data
- Organize the data
- Sort the data
- Format the data
Those steps (often) are handled by the following areas:
- WWW form and CGI handler/script
- DBI call
- The inflater function I gave you
- Another function which takes the results of the inflater. I did not write this, leaving it as an exercise for the reader
- HTML::Template and/or Template
In other words, I did the conceptually-difficult part of your work for you. Now, I'm expecting you to take what I did and adapt it to your needs. Not unreasonable for free expert-level help, wouldn't you say?
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
| [reply] |