Your problem is not very clear to me but I am assuming that for each value of AdminTime you want to fetch five values from AdminEndDate.
Is that possible in Perl?
It is more of a logic issue rather than Perl issue
You can pop out five values from AdminEndDate for each iteration of AdminTime. You can also take a counter in AdminTime's loop and use it to get the starting index of AdminEndDate.
I hope that directs to you towards solution. I haven't worked on Template so I won't be able to show you how to code it.
In reply to Re: How to skip certain values in a foreach loop
by samarzone
in thread How to skip certain values in a foreach loop
by Frederic_S
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |