Re: HTML Template - fatal error in loop output
Senthil Nathan <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
Hi Roger,
Thanks. That works now.
This is how I did it,
foreach $instance(@diagnosis)
{
my %row = (
line => $instance
);
push(@diag, \%row);
}
$template->param(dign_loop => \@diag);
So, Can't we directly pass an array to the template?????
Thanks
rsennat
On 11/10/05, Roger Burton West <[email protected]> wrote:
>
> On Thu, Nov 10, 2005 at 05:57:51PM +0530, Senthil Nathan wrote:
>
> >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.
>
> I recommend that you reread the documentation, specifically on the
> structure of hashes in loops needed by the TMPL_LOOP construct. Hint:
> you need a structure of hashes in loops.
>
> Roger
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server.
> Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> Html-template-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/html-template-users
>