my $form = new FormObject( $ref2QuestionsHash, $ref2QuestionsOrderArray ); $form->printForm; $form->validate($ref2UserInput)