my $form = CGI::FormBuilder->new( template => { ## the template being used type=> 'TT2', template => 'method1.tt', variable => 'form', engine => { INCLUDE_PATH => './templates', RELATIVE => '1', }, data => { twinkle => 'this is a test', recaptcha => $recaptcha, }, }, id => 'form', fields => \@formfields , ## declares where the formfields can be found method => 'post', ## the HTML form method action => $ENV{SCRIPT_NAME}, ## ensure the action is set properly sticky => 1, #debug => 2, ## sets the debug level int[0,3] ? );