FUNCTIONS

None exported by default.

load_yaml_utf8
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
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
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
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
dump_yaml( $data );

Dumps data in YAML in Unicode. Возвращает уникод.

parse_yaml
parse_yaml( $yaml_text );

Parses YAML text into Unicode structure.

Принимает unicode или UTF-8.

yaml_merge_hash_fix
yaml_merge_hash_fix( $ref );

YAML hash merge bugfix http://www.perlmonks.org/?node_id=813443.