in reply to bareword problems

Bareword 'end_form' not allowed when under strict subs.

Remove the single quotes and slap a pair of parentheses on it so that Perl knows that it's a function call.    end_form() should do the trick.

You've got some extra commas in there, but I don't think they're anything more than a style problem.