<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana size=1>Hi,
</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana size=1>i need help
referencing members of an array in a template. I have the following code and i
cant seem to access what i want:</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana size=1>
my %products;<BR> my %versions;</FONT></SPAN></DIV>
<DIV><FONT face=Verdana size=1></FONT> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana size=1>
foreach my $p (@enterable_products)
{<BR> if
(CanEnterProduct($p))<BR>
{<BR>
$products{$p} =
$::proddesc{$p};<BR>
$versions{$p} = {"1.0", "2.0",
"3.0"};<BR> }<BR>
}<BR> <BR><BR> $vars->{'proddesc'} =
\%products;<BR> $vars->{'versions'} =
\%versions;</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana size=1>In the template i
have a loop going through each product, which works fine:</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana size=1>[% FOREACH p =
proddesc.keys.sort %]</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana size=1>[% END
%]</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana size=1>but i want to try
to access the difference versions of each product too, i have
tried</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1> [% actual = proddesc.$p
%]<BR> [% FOREACH ver = versions.$actual
%]</FONT></SPAN></DIV>
<DIV><SPAN
class=703342012-11082003> <FONT
face=Verdana size=1> [% ver %]</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1> [% END %]</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana size=1>and numerous other
ways, but to no avail.</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana size=1>Can anyone help me
out?</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1>Thanks</FONT></SPAN></DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003><FONT face=Verdana
size=1></FONT></SPAN> </DIV>
<DIV><SPAN class=703342012-11082003></SPAN><FONT face=Verdana
size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV>
<TABLE cellPadding=3 width=440 border=0>
<TBODY>
<TR>
<TD vAlign=top width=36><IMG height=168
src="http://www.nexsan.com/sigs/siglogo.gif" width=33></TD>
<TD vAlign=top>
<DIV><FONT face="Arial, Helvetica, sans-serif" size=2></FONT><FONT
face="Arial, Helvetica, sans-serif" size=2><STRONG><FONT
color=#330066>Mark Ingram</FONT></STRONG><BR>Software Engineer<BR>Nexsan
Technologies</FONT></DIV>
<DIV><FONT face="Arial, Helvetica, sans-serif" size=2>33 - 35 Parker
Centre</FONT></DIV>
<DIV><FONT face=Arial size=2>Mansfield Road</FONT></DIV>
<DIV><FONT face="Arial, Helvetica, sans-serif" size=2>Derby</FONT></DIV>
<DIV><FONT face="Arial, Helvetica, sans-serif" size=2>DE21
4SZ</FONT></DIV>
<DIV><FONT face="Arial, Helvetica, sans-serif" size=2>United Kingdom<BR>p:
+44 01332 291600<BR>f: +44 01332 291616 </FONT></DIV>
<DIV><FONT face="Arial, Helvetica, sans-serif" size=2>w: <A
href="http://www.nexsan.com/">http://www.nexsan.com</A></FONT><FONT
face="Arial, Helvetica, sans-serif" size=2><BR><FONT face=Verdana>e:
</FONT><A
href="mailto:mark.ingram@nexsan.com">mark.ingram@nexsan.com</A></FONT><BR></DIV>
<P><FONT face="Arial, Helvetica, sans-serif" size=2><I><FONT
color=#999999>The next generation <B>now!</B></FONT></I></FONT></P></TD>
<TD vAlign=top>
<DIV align=center>
<P><IMG height=59 src="http://www.nexsan.com/sigs/POYsignsm.gif"
width=75></P>
<P><IMG height=55 src="http://www.nexsan.com/sigs/BOC.gif"
width=83><BR><FONT size=2><B><FONT
face="Arial, Helvetica, sans-serif">WINNER<BR><FONT size=1>Best Enterprise
Storage</FONT></FONT></B></FONT></P></DIV></TD></TR></TBODY></TABLE>
<P><FONT face=Verdana size=2></FONT> </P></DIV>
<DIV> </DIV></BODY></HTML>