From: Ash Berlin Date: Fri, 24 May 2013 10:03:32 +0000 (+0100) Subject: Fix "No arguments!" error in Plugin::DDS when nothing to dump (fixes: #71205) X-Git-Tag: v1.003019~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=882e1d11de0ed3d364ea913495452dcef31dfa81;p=p5sagit%2FDevel-REPL.git Fix "No arguments!" error in Plugin::DDS when nothing to dump (fixes: #71205) --- diff --git a/lib/Devel/REPL/Plugin/DDS.pm b/lib/Devel/REPL/Plugin/DDS.pm index 9a32449..d32a5c3 100644 --- a/lib/Devel/REPL/Plugin/DDS.pm +++ b/lib/Devel/REPL/Plugin/DDS.pm @@ -8,7 +8,7 @@ around 'format_result' => sub { my $self = shift; my @to_dump = @_; my $out; - if (@to_dump != 1 || ref $to_dump[0]) { + if (@to_dump > 1 || ref $to_dump[0]) { if (@to_dump == 1 && overload::Method($to_dump[0], '""')) { $out = "@to_dump"; } else {