Catmandu::Exporter::YAML(3pm) | User Contributed Perl Documentation | Catmandu::Exporter::YAML(3pm) |
Catmandu::Exporter::YAML - a YAML exporter
# From the commandline $ catmandu convert JSON --fix myfixes to YAML < /tmp/data.json # From Perl use Catmandu; # Print to STDOUT my $exporter = Catmandu->exporter('YAML', fix => 'myfix.txt'); # Print to file or IO::Handle my $exporter = Catmandu->exporter('YAML', file => '/tmp/out.yml'); my $exporter = Catmandu->exporter('YAML', file => $fh); $exporter->add_many($arrayref); $exporter->add_many($iterator); $exporter->add_many(sub { }); $exporter->add($hashref); printf "exported %d items\n" , $exporter->count;
Catmandu::Exporter, Catmandu::Importer::YAML
2023-03-03 | perl v5.36.0 |