Any of both solutions looks fine to me.
In reply to Re^5: HTML::Template::Compiled - TMPL_EACH by mmanso in thread HTML::Template::Compiled - TMPL_EACH by mmanso