in reply to Multi-form pages with CGI::FormBuilder and HTML::Template

<tmpl_include> just processes the other template and inserts the resulting text in place of the <tmpl_include> tag. So, if you're including component templates which generate <head> sections, then you'll get <head>s in the middle of your <body>, which is probably not the desired behaviour.

I tend to get around this by having a container template which defines headers, footers, navigation elements, etc. and then content templates to generate each piece of the actual page. This gives me the freedom to mix and match the content templates however I like without creating conflicts, then insert the result into the <body> of the container template. (It also has the advantage of only defining the header, footer, etc. in one place, so consistency from page to page is assured and, if it does need to change, there's only one place it needs to be changed.) Having never used CGI::FormBuilder, though, I have no idea how/if it might fit into this sort of scheme.