DOKK / manpages / debian 12 / libcatmandu-perl / Catmandu::Exporter::Multi.3pm.en
Catmandu::Exporter::Multi(3pm) User Contributed Perl Documentation Catmandu::Exporter::Multi(3pm)

Catmandu::Exporter::Multi - export you data to multiple exporters

    # this will write both a CSV and an XLS file
    my $exporter = Catmandu::Exporter::Multi->new(exporters => [
        Catmandu::Exporter::CSV->new(file => 'mydata.csv'),
        Catmandu::Exporter::XLS->new(file => 'mydata.xls'),
    ]);
    $exporter->add({col1 => 'val1', col2 => 'val2'});
    $exporter->commit;

Catmandu::Exporter

2023-03-03 perl v5.36.0