From ad65bf1b5dc884673dec87e50fc2616e6262b663 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 28 Feb 2013 10:50:25 +0100 Subject: [PATCH] =?utf8?q?LXDebug->dump:=20Optionen=20an=20Data::Dumper=20?= =?utf8?q?=C3=BCbergeben=20k=C3=B6nnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/LXDebug.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index 1a0a36568..e4e0cb272 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -157,7 +157,7 @@ sub warn { } sub dump { - my ($self, $level, $name, $variable) = @_; + my ($self, $level, $name, $variable, %options) = @_; if ($data_dumper_available) { my $password; @@ -169,6 +169,7 @@ sub dump { my $dumper = Data::Dumper->new([$variable]); $dumper->Sortkeys(1); $dumper->Indent(2); + $dumper->$_($options{$_}) for keys %options; $self->message($level, "dumping ${name}:\n" . $dumper->Dump()); $variable->{password} = $password if (defined $password); -- 2.20.1