Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: YAML for logs?

by blazar (Canon)
on Nov 26, 2006 at 10:05 UTC ( [id://586085]=note: print w/replies, xml ) Need Help??


in reply to Re: YAML for logs?
in thread YAML for logs?

I thought about setting the input record separator (see perlvar, perlrun) to "---\n" which can be done, but on the command line perl only seems able to set a single character separator with the command line switches.

Well, whatever: I wouldn't be doing this from the command line anyway.

Oh, one more datapoint. Boulder is something like yaml made for bioperl, and used in piped workflows. So you aren't the first person to want to do this and it shouldn't be too hard. If I was doing this I would probably just roll my own program I think to watch a file and pull in lines, decoding from yaml when a separator is reached.

But the point is that "--- \n" wouldn't be a separator. It would rather be a sort of introductory line. The concept is close, but not quite the same. Which is why I wrote that I'd have to massage the chunks anyway. Perhaps, also in view of something like that hinted elsewhere, a multiline per record format based on a data serialization one "should" (from my blazarcentric POV) be paragraph oriented...

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://586085]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-03-28 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found