Re: How to skip certain values in a foreach loopby samarzone (Pilgrim)
|on Dec 28, 2010 at 12:21 UTC||Need Help??|
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.