YATT::XHF - Extended Header Fields format.
require YATT::XHF my $reader = YATT::XHF->new(filename => 'file'); while (my $rec = $reader->read_as_hash) { print $rec->{'foo'} }
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.
"KOBAYASI, Hiroaki", <hkoba at cpan.org>
<hkoba at cpan.org>
Copyright (c) 2008, "KOBAYASI, Hiroaki" <hkoba@cpan.org>. All rights reserved.
<hkoba@cpan.org>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install YATT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm YATT
CPAN shell
perl -MCPAN -e shell install YATT
For more information on module installation, please visit the detailed CPAN module installation guide.