NAME
ETL::Yertl::Format::default - The default format for intra-Yertl communication
VERSION
version 0.036
SYNOPSIS
my $out_formatter = ETL::Yertl::Format::default->new;
print $formatter->write( $document );
my $in_formatter = ETL::Yertl::Format::default->new(
input => \*STDIN,
);
my $document = $formatter->read;
DESCRIPTION
This is the default format for Yertl programs talking to each other. By default, this is YAML, but it can be set to JSON by setting the YERTL_FORMAT environment variable to "json".
Setting the default format to something besides YAML can help interoperate with other programs like jq or recs.
METHODS
new
my $formatter = ETL::Yertl::Format::default->new( %args );
Get an instance of the default formatter. The arguments will be passed to the correct formatter module.
SEE ALSO
- ETL::Yertl::Format::yaml
-
The YAML formatter
- ETL::Yertl::Format::json
-
The JSON formatter
AUTHOR
Doug Bell <preaction@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by Doug Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.