FAQ
Hi,

I had an issue recently with Catalyst setting $Data::Dumper::Terse to 1
globally which causes other modules which expect Data::Dumper to produce
its output using its default configuration.

As far as I can tell the following patch should fix that (it sure fixed
my problem). It was originally against the previous release but I've
updated it to (hopefully) work against 5.30.


--- Engine.pm.old Mon Jul 4 15:23:32 2005
+++ Engine.pm Mon Jul 4 15:24:45 2005
@@ -17,9 +17,6 @@
use Catalyst::Response;
use Catalyst::Utils;

-# For pretty dumps
-$Data::Dumper::Terse = 1;
-
__PACKAGE__->mk_classdata('components');
__PACKAGE__->mk_accessors(qw/counter request response state/);

@@ -276,6 +273,8 @@

my ( $title, $error, $infos );
if ( $c->debug ) {
+ # For pretty dumps
+ local $Data::Dumper::Terse = 1;
$error = join '', map { '<code class="error">' .
encode_entities($_) . '</code>' } @{ $c->error };
$error ||= 'No output';
$title = $name = "$name on Catalyst $Catalyst::VERSION";

--
Robin Berjon
Senior Research Scientist
Expway, http://expway.com/

Search Discussions

  • Sebastian Riedel at Jul 5, 2005 at 1:30 pm

    Am 04.07.2005 um 15:30 schrieb Robin Berjon:

    Hi,

    I had an issue recently with Catalyst setting $Data::Dumper::Terse
    to 1 globally which causes other modules which expect Data::Dumper
    to produce its output using its default configuration.

    As far as I can tell the following patch should fix that (it sure
    fixed my problem). It was originally against the previous release
    but I've updated it to (hopefully) work against 5.30.
    Thanks, applied!

    --
    sebastian

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedJul 4, '05 at 3:28p
activeJul 5, '05 at 1:30p
posts2
users2
websitecatalystframework.org
irc#catalyst

2 users in discussion

Sebastian Riedel: 1 post Robin Berjon: 1 post

People

Translate

site design / logo © 2021 Grokbase