YATT::XHF - Extended Header Fields format.


YATT documentation  | view source Contained in the YATT distribution.

Index


NAME

Top

YATT::XHF - Extended Header Fields format.

SYNOPSIS

Top

  require YATT::XHF
  my $reader = YATT::XHF->new(filename => 'file');
  while (my $rec = $reader->read_as_hash) {
    print $rec->{'foo'}
  }

DESCRIPTION

Top

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

Top

"KOBAYASI, Hiroaki", <hkoba at cpan.org>

LICENCE AND COPYRIGHT

Top


YATT documentation  | view source Contained in the YATT distribution.