Catman...::Multi(3pm)
π Catmandu::Exporter::Multi(3pm) β NAME π
okay so the header at the top of your terminal is gonna call this page Catman...::Multi(3pm) (truncated, mysterious, honestly kind of iconic) but its actual government name is:
Catmandu::Exporter::Multi β export your data to multiple exporters π
that's the whole vibe. one exporter is cute, but why pick when you can have all of them. no cap.
β¨ SYNOPSIS β¨
bestie look at this. this will write both a CSV and an XLS file:
# 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;
so here's the tea π« β you build your little squad of exporters, hand the whole array over to Catmandu::Exporter::Multi->new under the exporters key, and then you just talk to the one exporter like it's the group chat. add your data, commit at the end, and everybody in the squad gets it. not me being obsessed with a one-to-many relationship that actually works π
exportersβ the array of exporter objects you're feeding your data into. in the example that's aCatmandu::Exporter::CSVpointed at'mydata.csv'and aCatmandu::Exporter::XLSpointed at'mydata.xls'.addβ you give it a hashref of your data, like{col1 => 'val1', col2 => 'val2'}.commitβ the final boss step. do it. don't skip it. π
reminder that the two files in the example are'mydata.csv'and'mydata.xls'β literal filenames, literal vibes, don't come for me π
π SEE ALSO π
Catmandu::Exporterβ the parent energy. go say hi. π
and that's the page, bestie!! πΈ this one's from perl v5.40.1, dated 2026-01-24, and the header/footer both spell it Catman...::Multi(3pm) because terminals love a dramatic ellipsis. mwah, go export everything at once, you're doing amazing sweetie π¦π
π¦ where this page comes from
- ubuntu resolute: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-perl 1.2025-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms