From: Yuval Kogman Date: Sun, 15 Jul 2007 15:41:08 +0000 (+0000) Subject: fix checksuming X-Git-Tag: 0_07~11 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b7e2e91bccb1419a37f32f3cc99333750bb8d73e;p=gitmo%2FMooseX-Storage.git fix checksuming --- diff --git a/lib/MooseX/Storage/Base/WithChecksum.pm b/lib/MooseX/Storage/Base/WithChecksum.pm index a1215e4..cf1ebdf 100644 --- a/lib/MooseX/Storage/Base/WithChecksum.pm +++ b/lib/MooseX/Storage/Base/WithChecksum.pm @@ -49,7 +49,12 @@ sub _digest_packed { { local $Data::Dumper::Indent = 0; local $Data::Dumper::Sortkeys = 1; - $d->add( Data::Dumper::Dumper($collapsed) ); + local $Data::Dumper::Terse = 1; + local $Data::Dumper::Useqq = 0; + local $Data::Dumper::Deparse = 0; # FIXME? + my $str = Data::Dumper::Dumper($collapsed); + $str =~ s/(?add( $str ); } return $d->hexdigest;