From 8221df8f61b633157b4847b3c5291815b76f091c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 8 Jun 2013 13:58:19 -0500 Subject: better Data::Dumper config --- lib/Reply/Plugin/DataDumper.pm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/Reply/Plugin/DataDumper.pm b/lib/Reply/Plugin/DataDumper.pm index 7491c60..4c90acc 100644 --- a/lib/Reply/Plugin/DataDumper.pm +++ b/lib/Reply/Plugin/DataDumper.pm @@ -18,6 +18,15 @@ This plugin uses L to format results. =cut +sub new { + my $class = shift; + + $Data::Dumper::Terse = 1; + $Data::Dumper::Sortkeys = 1; + + return $class->SUPER::new(@_); +} + sub mangle_result { my $self = shift; my (@result) = @_; -- cgit v1.2.3-54-g00ecf