HTML Template - fatal error in loop output

Senthil Nathan <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
Hi All,

I am using an HTML::Template module like this,
perl script - contains,

@diagnosis = ( "ONE", "TWO", "THREEE" );
$template->param(dign_loop => \@diagnosis);

And template,

<TMPL_LOOP NAME="dign_loop">
<TMPL_VAR NAME="diagnosis">

Im not getting the array being displayed.

This is the error I get when I run it,

HTML::Template->output() : fatal error in loop output : HTML::Template :
Attempt to get nonexistent parameter 'one' - this parameter name
doesn'tmatch any declarations in the template file :
(die_on_bad_params set => 1)
at /usr/cisco/packages/perl/perl-5.8.6/lib/site_perl/5.8.6/HTML/Template.pm
line 2962 at hiGuiResultsBrowser.pm line 334

Please help me to resolve this.

Thanks
rsennat
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.