One side note: CGI::Carp::warningsToBrowser might be worth looking into.
In reply to Re^3: CGI and security by Your Mother in thread CGI and security by AnnShinoy