Hello All,
My problem is that I'm trying to do a few loops, but the data of the
nested loop is dependent upon the value of the index of the outer loop.
here's the perl to make it more explicit
foreach $dir (@directories) {
foreach $file (sort keys %items) {
if $item{$file} eq $dir {
# work on it
}
}
}
So you can see, that I need to know what the current index of the outer
loop is at, so that I can work on the relevant data, otherwise I will
work on all the data in %items with every single iteration of looping
through @directories.
How do I get at the value of the current iteration of the outer
TMPL_LOOP so that I can test against it and deal with the correct data?
Be as explicit as possible with your response. I really want to see if
HTML::Template (which other than this seems perfect for me) can work for
my needs.
--
*
* David Rogal
* Aduva, INC
* 650.858.8674
* 800.331.5445
*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]