NAME

yaml2perl.pl : convert YAML data to a Perl variable (dump) which can be parsed or eval'ed by any Perl script.

VERSION

Version 0.06

SYNOPSIS

yaml2perl.pl -i "input.yaml" -o "output.perl" --no-escape-unicode --terse --no-indent

USAGE

yaml2perl.pl

Options:

--i filename : specify a filename which contains a YAML data structure.
--I "string" : specify a string which contains a YAML data structure.
--o outputfilename : specify the output filename to write the result to, which will be as a Perl variable, as a dump, which can be parsed or eval'ed from any Perl script.
--escape-unicode : it will escape all unicode characters, and convert them to something like "\u0386"
--terse : Terse form of output (no $VAR1)
--no-indent : do not use indentation

Input can be read from an input file (--i), from a string at the command line (--I) (properly quoted!), from STDIN (which also includes a file redirection yaml2perl.pl < inputfile.yaml > outputfile.perl

For more information see Data::Roundtrip.

AUTHOR

Andreas Hadjiprocopis, <bliako at cpan.org> / <andreashad2 at gmail.com>