<p> Location: <br/> <%= $local->{place}[ $number ]{street} %> </p>
> The code works if its like this: <% $local->{ place }[ 0 ]{ street } %>
Unlikely, the = is missing in <%= to insert the value
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re: Mojo Template, passing dynamic index to array.
by LanX
in thread Mojo Template, passing dynamic index to array.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |