http://www.perlmonks.org?node_id=345025


in reply to Passing results to a script after form element validation

Not sure I understand what you are trying to do. But if I do, then perhaps you can put your scipt2.cgi into a sub inside a module, and then just call call the sub2, passing on the $co object.

For example:

sub process_form{
        if ( validate_form()){
                $result = MyModule->mysub2($co);
        }
}

HTH

Anne