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

Joe Atzberger ohiocore at gmail.com
Thu Sep 13 16:46:31 CEST 2007


On 9/13/07, Rick Welykochy <rick at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20070913/0c538d20/attachment-0002.htm>


More information about the Koha-devel mailing list