CGI::Prototype
Questions and Answers

CGI::Prototype puts an array ref in html form?

Summary: calling self.CGI.end_form from a template returns an array, you need to say self.CGI.end_form.join("") to get the closing </form> tag as a string. (Or just write it directly.)