good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: YAML newbie helpby grinder (Bishop) |
on May 31, 2005 at 09:46 UTC ( [id://461972]=note: print w/replies, xml ) | Need Help?? |
I'm looking for some documentation that can get me started real quick, with cut-and-pasteable practical examples. I've always found that the easiest way to write code to emit valid YAML is to create the target structure in Perl and dump it out, and look at the result.
Which produces
And from there it's pretty easy to whip up some code that produces this target output. From these sorts of empirical observations you can usually figure out what YAML you need to write to achieve the data structure you want to play with. - another intruder with the mooring in the heart of the Perl
In Section
Seekers of Perl Wisdom
|
|