Please ignore... was describing the wrong array... this var works as expected.

On Thu, Feb 10, 2011 at 4:44 PM, Mohamed Lrhazi <[email protected]> wrote:
> I defined a var like so:
>
> $myarray = [ ["a","b"],["c","d"] ]
>
> Then in a template I tried something like:
>
> <% myarray.each do |element| -%>
>  <%= element[0] %>
>  <% end -%>
>
> It does not result in what I expect.... It seems as if myarray was flattened.
>
> are multi-dimensional arrays supported?
>
> Thanks,
> Mohamed.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to