in reply to CGI::Application: how to debug?

Have you debugged it before running it as CGI?

perl -c filename and perl -d filename are your friends.

If you've already tried those, perhaps some additional information (or code) is in order.