App-Fasops
view release on metacpan or search on metacpan
lib/App/Fasops/Command/stat.pm view on Meta::CPAN
my $out_fh;
if ( lc( $opt->{outfile} ) eq "stdout" ) {
$out_fh = *STDOUT{IO};
}
else {
open $out_fh, ">", $opt->{outfile};
}
# csv object
my $csv = Text::CSV_XS->new( { eol => $/, } );
# headers
my @headers = qw{
first legnth comparables identities differences gaps ns errors D indel
};
$csv->print( $out_fh, \@headers );
my $content = ''; # content of one block
while (1) {
last if $in_fh->eof and $content eq '';
( run in 1.850 second using v1.01-cache-2.11-cpan-98e64b0badf )