koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Koha-devel] Re: FAQ: Why am I prompted to save a .pl file? was: Pro


From: Joe Atzberger
Subject: Re: [Koha-devel] Re: FAQ: Why am I prompted to save a .pl file? was: Problems adding a biblio...
Date: Thu, 13 Sep 2007 10:46:31 -0400

On 9/13/07, Rick Welykochy <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]