None exported by default.
load_yaml_utf8( $file_name );
Loads specified YAML file. Source file should be in UTF-8. Output is UTF-8 binary string. UTF-8 validation performed.
load_yaml( $file_name );
Loads specified YAML file. Source file should be in UTF-8. Output is UTF-8 character string. UTF-8 validation performed.
load_yaml_bytes( $file_name );
Loads specified as-is (no charset processing is involved). For old cp1251 yamls only. Output is binary string, same as input data.
load_yaml_objects( $file_name )
Loads specified file and outputs data in configured encoding. Source file always in UTF-8. Output format is text (unicode)
Any !perl tag will be blessed.
Syntax:
myobj: !!perl/Some::Class prop: value
Don't use on insecure data!
dump_yaml( $data );
Dumps data in YAML in Unicode. Возвращает уникод.
parse_yaml( $yaml_text );
Parses YAML text into Unicode structure.
Принимает unicode или UTF-8.
yaml_merge_hash_fix( $ref );
YAML hash merge bugfix http://www.perlmonks.org/?node_id=813443.
To install YAML::SyckWrapper, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YAML::SyckWrapper
CPAN shell
perl -MCPAN -e shell install YAML::SyckWrapper
For more information on module installation, please visit the detailed CPAN module installation guide.