ETL::Yertl::Format::default - The default format for intra-Yertl communication
version 0.033
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;
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".
YAML
JSON
YERTL_FORMAT
"json"
Setting the default format to something besides YAML can help interoperate with other programs like jq or recs.
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.
The YAML formatter
The JSON formatter
Doug Bell <preaction@cpan.org>
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.
To install ETL::Yertl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm ETL::Yertl
CPAN shell
perl -MCPAN -e shell install ETL::Yertl
For more information on module installation, please visit the detailed CPAN module installation guide.