Skip to content
Snippets Groups Projects
Commit 0106d005 authored by Andreas Romeyke's avatar Andreas Romeyke
Browse files

- use get_headers(), therefore call simplified

parent 729fb4d8
No related branches found
No related tags found
No related merge requests found
...@@ -88,13 +88,13 @@ The following table contains the results of validating the AIPs of the volumes: ...@@ -88,13 +88,13 @@ The following table contains the results of validating the AIPs of the volumes:
$volumes $volumes
PREFACE PREFACE
if ($opt->{output_format} eq 'output_as_csv') { if ($opt->{output_format} eq 'output_as_csv') {
SLUB::LZA::TA::Output::CSV::print_results(\@headers, \@results); SLUB::LZA::TA::Output::CSV::print_results(\@results);
} elsif ($opt->{output_format} eq 'output_as_rsv') { } elsif ($opt->{output_format} eq 'output_as_rsv') {
SLUB::LZA::TA::Output::RSV::print_results(\@headers, \@results); SLUB::LZA::TA::Output::RSV::print_results(\@results);
} elsif ($opt->{output_format} eq 'output_as_raw') { } elsif ($opt->{output_format} eq 'output_as_raw') {
SLUB::LZA::TA::Output::Raw::print_results(\@results); SLUB::LZA::TA::Output::Raw::print_results(\@results);
} else { } else {
SLUB::LZA::TA::Output::Asciidoc::print_results(\@headers, \@results, $misc_ref); SLUB::LZA::TA::Output::Asciidoc::print_results(\@results, $misc_ref);
} }
return 1; return 1;
} }
......
...@@ -7,7 +7,8 @@ use namespace::autoclean -except => qr{SLUB::LZA::TA::.*}; ...@@ -7,7 +7,8 @@ use namespace::autoclean -except => qr{SLUB::LZA::TA::.*};
# ABSTRACT: search IEs module for ta-tool # ABSTRACT: search IEs module for ta-tool
sub print_results($headers_ref, $result_ref, $misc_ref= undef) { sub print_results($result_ref, $misc_ref= undef) {
my $headers_ref = SLUB::LZA::TA::Output::get_headers($result_ref);
binmode(STDOUT, ':encoding(UTF-8)'); binmode(STDOUT, ':encoding(UTF-8)');
no warnings; no warnings;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment