Am I off base in my interpretation?
I suspect so, but it's hard to say without a better look at the actual code in context that produces the error. I tried this template fragment out with some basic code to fake up the data, and got no errors (code and output below). Assuming that you can run this code without errors, can you try to find and post the shortest piece of code and template you can come up with that does produce the error you're seeing?

#!/usr/bin/perl use strict; use warnings; use Carp 'verbose'; use HTML::Template; my $temp_text = <<EOT; <select name="type"> <tmpl_loop name="TYPE"> <option value="<tmpl_var name="n_event">" <tmpl_var name +="sel">> <tmpl_var name="t_event"> </option> </tmpl_loop> </select> EOT my $tpl = HTML::Template->new(scalarref => \$temp_text); my @ary = map {n_event => $_, sel=>$_,t_event=>$_}, qw(foo bar baz cliche trope); $tpl->param(TYPE=>\@ary); print $tpl->output; __END__ <select name="type"> <option value="foo" foo> foo </option> <option value="bar" bar> bar </option> <option value="baz" baz> baz </option> <option value="cliche" cliche> cliche </option> <option value="trope" trope> trope </option> </select>



If God had meant us to fly, he would *never* have given us the railroads.
    --Michael Flanders


In reply to Re: Re: HTML:Template Limitation? by ChemBoy
in thread HTML:Template Limitation? by digger

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.