I have a Perl based tpl that reads mutiple DCRs and sorts the data based on a form field (to create an indexed page), which works fine. However going deeper, I have to work with replicants within each DCR. The Perl code currently reads the first occurence of a replicant within a DCR, but not the remaining replicants (the number of replicants within a DCR can vary)...
In addition, I need to capture the values for further processing with IF and sort statements and such so it s not just a straight read and output script.
I have something like this:
foreach (
@DCRs) {
if (!/^\./) {
$CurrentDCR = iwpt_load_dcr("$_", "dcrlocal");
$year = iwpt_dcr_value('CurrentDCR.expensereportgrid.Year');
(other varibles)
...
push(
@SortedDCRs,....)
...
foreach (sort
@SortedDCRs) {....
}
... then the HTML output...