in reply to Output of STDERR - Probably an easy one

See CGI::Carp
It includes methods such as fatalsToBrowser and warningsToBrowser that are useful for debugging and controlling which messages go to the browser.

Cheers,
Darren