Subject: | Leading comment is parsed as separate document |
In http://perlmonks.org/?node_id=639724 I detail the problem and my use
case. My stream starts with a comment and is then 40MB of YAML
documents, all leading with the --- document start and w/o the ...
terminator. IO::YAML parses the leading comment as a separate document:
# this is a comment
--- ~
My reading of the YAML spec says the comment is part of the document
that immediately follows it.