RE: [code-review] list scope

"Hodges, Paul" <Paul.Hodges-Bdlq13kUjey1Z/[email protected]> Mon, 15 Sep 2003 11:40:43 -0500
Newsgroups gmane.comp.lang.perl.code-review-ladder
Message-ID <9C375DDD9B669243A2D78FCD607E894003E4FC51@bremo-jg>
I've use YAML, and I agree completely -- not for GB files, but a beautiful format for anything smaller, with a great interface.


> -----Original Message-----
> From: code-review-ladder-admin-wool9L35kiek0rBIEb6pKdBc4/[email protected]
> [mailto:code-review-ladder-admin-wool9L35kiek0rBIEb6pKdBc4/[email protected]]On 
> Behalf Of Paul
> Hoffman
> Sent: Monday, September 15, 2003 9:02 AM
> To: code-review-ladder-wool9L35kiek0rBIEb6pKdBc4/[email protected]
> Subject: RE: [code-review] list scope
> 
> 
> On Friday, September 12, 2003, at 05:17:06 -0400, 
> [email protected] wrote:
> 
> > It's a bit of work to split your process into a parse and 
> dump phase,
> > followed by an undump and analyse phase but if you end up 
> reanalysing 
> > even
> > once, it sounds like you'll get that time back pretty quickly.
> 
> This is a bit OT, but maybe it'll help someone...
> 
> In a recent project, I used YAML to load and dump intermediate files 
> (basically, at the beginning and end of each make target).  
> My program 
> combines data from three files, each in a different format, and 
> produces two different reports with different contents.  I don't 
> recommend YAML::LoadFile for 1GB files! -- even for 2MB files it was 
> annoyingly slow -- *but* it saved my bacon more than once by 
> letting me 
> see what the data looked like each step of the way; when I 
> saw puzzling 
> output, I was able to pin down my coding logic flaws quickly 
> and easily 
> because the intermediate files were there (and were so easy to read).
> 
> And you can't get much simpler than this:
> 
>    use YAML ();
>    $data = YAML::LoadFile('foo.yml');
>    ... do something with $data ...
>    YAML::DumpFile('bar.yml', $data);
> 
> Paul.
> 
> --
> Paul Hoffman :: Taubman Medical Library :: Univ. of Michigan
> [email protected] :: [email protected] :: http://www.nkuitse.com/
> 
> 
> _______________________________________________
> code-review-ladder mailing list
> code-review-ladder-wool9L35kiek0rBIEb6pKdBc4/[email protected]
> http://lists.netthink.co.uk/listinfo/code-review-ladder
> 

*****
"The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material.  Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.  If you received this in error, please contact the sender and delete the material from all computers."  113