On Tue, Jul 30, 2002 at 01:11:41PM +0100, Dave Hodgkinson wrote:
> q.end_form.join ;
> /me joins the cargo cult.

It's all to do with the 'sticky' mode of CGI.

If you're not in sticky mode, end_form just returns the closing form
tag. But if you are in sticky mode it implements this by adding hidden
fields to your form. Lincoln obviously decided that the best place to
make it do this internally was when you closed the form.

Now, it's slightly more complex than that, because it also uses wantarray
- if you call end_form in scalar context, it joins all these different
HTML tags together into one string - but if you call it in list context
it returns them as a list.

So, you need to .join them yourself...

Not sure if there's a better workaround if you're using sticky mode ...

Tony

_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates

Reply via email to