On 9/13/07, Rick Welykochy <rick@praxis.com.au> wrote:
But it will be hard to turn CGI:Carp on in development and off
in production.

Actually, it seems pretty easy to me. 

use CGI::Carp qw(fatalsToBrowser);
... # some code ...
fatalsToBrowser(0);  # off
... # more code ...
fatalsToBrowser(1);  # back on

So you can decide to turn it on or off at runtime conditionally, based on whatever you want.  You wouldn't have to move code around at all. 

--Joe