NAME
YATT::XHF - Extended Header Fields format.
SYNOPSIS
require YATT::XHF
my $reader = YATT::XHF->new(filename => 'file');
while (my $rec = $reader->read_as_hash) {
print $rec->{'foo'}
}
DESCRIPTION
Extended Header Fields (XHF) is a data format based on Email header (and HTTP header), with extension to hold hierarchical data.
Mainly, XHF is designed for writing test cases. Of course, for data serialization, YAML is well known. But YAML imposes too much syntax to content(value) field. To write tests in YAML, many escaping is required.
XHF is designed to avoid this escaping. XHF relies only on field header at line-beginning, and escapes only newline on trailing contents.
To achieve this, resulting syntax is somewhat odd for you than YAML. So, if readability of nesting structure is your interest than maintainability of verbatim contents, XHF is not for you.
AUTHOR
"KOBAYASI, Hiroaki", <hkoba at cpan.org>
LICENCE AND COPYRIGHT
Copyright (c) 2008, "KOBAYASI, Hiroaki" <hkoba@cpan.org>
. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.