On Sun, 30 Dec 2001, Alex Kirk wrote:

> Wow! Thanks for getting back to me so quickly. I really appreciate it.

No problem.  As long as I've got something else that I should be doing I'm
happy to procrastinate!

> > Can you describe what you mean by "not working properly"?
>
> To put it simply, it's not working at all. No code is generated, at all.

Ok, I still don't get it.  What do you mean "code"?  Are you getting an
error?  Have you looked in your server's error logs?

> 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?

>   for (my $x=0; $x<5; $x++)
>      {
>      $template->param(Q => \@refs);
>      }

This loops makes no sense - each time it calls param() it replaces the
value of the Q loop again!

> Hopefully that code falls under the category of "small working examples that
> demonstrate your problem", not "your whole 1000 line CGI". ;-)

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.

> That wasn't very clear from the documentation. That's not to say it's bad
> documentation -- heaven knows, I've written documentation myself, and it's
> tough to make it perfect -- just that it didn't come across to me very well.
> If you'd be interested, though, I'd be happy to write you up an addendum to
> the documentation detailing how to do this, once I get it working.

Patches are always welcome!  I doubt it's worth more than a sentence or
two but I'd be happy to add it.

-sam





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

Reply via email to