diff options
-rw-r--r-- | lib/App/REPL/Plugin/Defaults.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/App/REPL/Plugin/Defaults.pm b/lib/App/REPL/Plugin/Defaults.pm index 74734b9..fbd96f8 100644 --- a/lib/App/REPL/Plugin/Defaults.pm +++ b/lib/App/REPL/Plugin/Defaults.pm @@ -50,10 +50,10 @@ sub print_error { sub print_result { my $self = shift; - my ($next, $result) = @_; + my ($next, @result) = @_; - print $result, "\n" - if defined $result; + print @result, "\n" + if @result; } 1; |