When running in a persistent environment like FastCGI, you basically have to make the same changes you would for mod_perl. This means watching out for globals and closures. There's good introductory material on http://perl.apache.org/ that can help you with this. If you show some code, or at least the error messages, we might be able to help with the issues you're having with the CGI object and query parameters.