On Sun, 30 Dec 2001, Alex Kirk wrote:

> Sorry -- it's late and I'm getting sloppy. By code I meant no HTML tags. All
> print statements up to the "print $template->output" call show up in the
> produced HTML page, but that call shows me nothing in the HTML.

I ask again - have you looked in the server's error logs?  My guess is
that you'll find your problem there.

> Also, you can see my template page at
> http://www.elderlinda.com/quiz-template.tmpl.

This looks ok to me.

>
> >> sub display_questions(@refs)
> >
> > Hey, that's not Perl!  Actually, that looks a bit like the proposed syntax
> > for Perl 6...  Are you from the future?
>
> Funny, it seemed to work for me.

Yeesh, you're right it does!  It looks like Perl thinks that it's a valid
prototype.  I think this is a bug in Perl...

> > This loops makes no sense - each time it calls param() it replaces the
> > value of the Q loop again!
>
> I guess I just misunderstood what you were talking about when you said I
> could use the same TMPL_LOOP. How would you suggest doing that?

  $template->param(Q => \@array);

Calling param() more than once with the same loop name is always a
mistake.

> > Well, no, actually it doesn't because it's not a "working example"!  What
> > I mean is that I can't run it and see the problem you're having.  If I
> > can't run a small test script with a small test template then I can only
> > guess what your problem might be.
>
> Hopefully the URLs provided will show what I mean.

Nope.  That's not how it works.  I can't debug you're whole application!
If you think you've found a problem with HTML::Template then you need to
create a small test script and a small test template that demonstrates the
problem.  I need something I can fool with on my system if I'm going to
track down a real bug.

-sam



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to