Catmandu::Exporter::Text(3) a Text exporter


use Catmandu::Exporter::Text;
# Print to STDOUT
my $exporter = Catmandu::Exporter::YAML->new(fix => 'myfix.txt');
# Print to file or IO::Handle
my $exporter = Catmandu::Exporter::YAML->new(file => '/tmp/out.yml');
my $exporter = Catmandu::Exporter::YAML->new(file => $fh);
$exporter->add_many(sub { });
printf "exported %d objects\n" , $exporter->count;


Write output to a local file given by its path or file handle. Alternatively a scalar reference can be passed to write to a string and a code reference can be used to write to a callback function.
Write the output to an IO::Handle. If not specified, Catmandu::Util::io is used to create the output handle from the "file" argument or by using STDOUT.
An ARRAY of one or more fixes or file scripts to be applied to exported items.
Binmode of the output stream "fh". Set to "":utf8"" by default.
line_sep STR
Use the STR at each end of line.
field_sep STR
Use the STR at each end of a field.