<span style="font-family:courier new,monospace">Here's another entry for my 'yet to be composed' meeting<br>presentation entitled 'Things I've Stubbed My Toe On ...'<br><br><br>I'm trying to use YAML modules to send structures across<br>

pipes from children to parent processes (or sockets).<br>Although the YAML docs talk about Dump() and Load()<br>I haven't been able to find (or figure out) an adequate<br>example of 'exchanging' the data, only encoding and decoding.<br>

<br>Although YAML talks about documents, and documents are delimited<br>by '---' and '...' respectively, the YAML.pm doesn't (apparently)<br>directly provide this kind of 'document' support.  I would have<br>

expected a module to have provided a 'document wrapper' support.<br><br>Although I can add the wrapper manually during transmission...<br><br>Then when it comes to the receiving end... what am I expected<br>to do?  I don't think I can do a simple newline delimited read.<br>

[What happens to newlines that may have been in the variables<br>I was YAML sending ?]   Do I need to sit in a loop doing<br>newline-reads, accumulating stuff, till I see a line that starts<br>with the '---' or '...' ?<br>

<br>And, can all variables in a single exchange be sent within<br>the same document (example?) or do I have to send them<br>as individual documents within some kind of 'document of<br>document' wrapper?  Surely this can't be as hard as it seems?<br>

<br>Suggestions, examples or references ?<br>[PS. The same questions would apply to anyone who suggests<br> JSON as an alternative.]<br><br>TIA<br>Fulko<br></span>