You may also want to try the fatalsToBrowser option of CGI::Carp to read CGI errors in the browser when you are debugging code; if you do so you must (yes, I said MUST) eliminate it when putting your cgi in production --unless you want to show your web site internals all over the world, of course ;-)
Update: ooooopppss!!! Here it is!? Did you add me under my nose or I have to change my glasses? :-% Anyway, the advice of removing it in production code still stands.
Ciao!
--bronto
The very nature of Perl to be like natural language--inconsistant and full of dwim and special cases--makes it impossible to know it all without simply memorizing the documentation (which is not complete or totally correct anyway).
--John M. Dlugosz