http://qs1969.pair.com?node_id=11134970

Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks!!

I am trying to pass a dynamic value to print a value out of an array using Mojo::Template, getting syntax errors, is there a way to do that?

The code works if its like this:

<% $local->{ place }[ 0 ]{ street } %>
I'd like to pass the index number dynamic using the example below:

Code snipped from the .ep template file:

<p> Location: <br/> <% $local->{ place }[ %> <%= $number %> <% ]{ street } %> </p>
<%= $number %>, can be 0,1,2,3...