App::PipeFilter::Role::Output::Yaml - serialize output as YAML
version 0.005
package App::PipeFilter::JsonToYaml; use Moose; extends 'App::PipeFilter::Generic'; with qw( App::PipeFilter::Role::Reader::Sysread App::PipeFilter::Role::Input::Json App::PipeFilter::Role::Transform::None App::PipeFilter::Role::Output::Yaml ); 1;
App::PipeFilter::Role::Output::Yaml provides an encode_output() method that serializes data into YAML for output.
App::PipeFilter::Generic uses encode_output() to determine the format of the data it will write.
App::PipeFilter::Role::Output::Yaml uses YAML::Any by default, which will pick the best YAML implementation you have installed. You can change the YAML implementation by setting the PERL_APP_PIPEFILTER_YAML environment variable.
PERL_APP_PIPEFILTER_YAML
You may read this module's implementation in its entirety at
perldoc -m App::PipeFilter::Role::Output::Yaml
App::PipeFilter has top-level documentation including a table of contents for all the libraries and utilities included in the project.
https://rt.cpan.org/Public/Dist/Display.html?Name=App-PipeFilter
https://github.com/rcaputo/app-pipefilter
App::PipeFilter::Role::Output::Yaml is Copyright 2011 by Rocco Caputo. All rights are reserved. App::PipeFilter::Role::Output::Yaml is released under the same terms as Perl itself.
To install App::PipeFilter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::PipeFilter
CPAN shell
perl -MCPAN -e shell install App::PipeFilter
For more information on module installation, please visit the detailed CPAN module installation guide.