A not so long, hard look at the code posted makes me guess it's throwing a
Parse failed and dying. Obviously it won't help if the OP tells us that - so I didn't post asking for a clarification, either. Instead, I went looking at the POD for
HTML::Form, but it doesn't appear to have an
errstr method or similar facility. Unless someone finds something I missed, I don't think anyone can do more than guess blindly, here.
Makeshifts last the longest.