in reply to Accessing CGI objects from within a 'require'-ed file?

Just for yucks, what happens if you replace outputPost with:
sub outputPOST { my $cgi = $main::GLOBAL{'query'}; print $cgi->Vars; }
'use warnings' will probably shed more light on the problem if you aren't already.