--- Eric Wilhelm <[EMAIL PROTECTED]> wrote: > I'm not sure the YAML spec distinguishes between string and number > when > the string is a number. > > $ perl -e 'use YAML; warn YAML::Dump([3,"3"]);' > --- > - 3 > - 3 > $ perl -e 'use YAML::Syck; warn YAML::Syck::Dump([3,"3"]);' > --- > - 3 > - 3
Ah, crud. Is this because YAML doesn't quote things without whitespace? That really seems like a serious limitation to me. Can I really keep a straight face and tell a C programmer that the "Test Anything Protocol" deliberately chose a serialization language that ignores data types? This is mentioned in Wikipedia: http://en.wikipedia.org/wiki/YAML#Pitfalls_and_implementation_defects Workarounds for this issue are listed, but that still puts us in the position of needing a pure-perl, core method of disambiguating integers, floats, and strings. Cheers, Ovid -- Buy the book - http://www.oreilly.com/catalog/perlhks/ Perl and CGI - http://users.easystreet.com/ovid/cgi_course/ Personal blog - http://publius-ovidius.livejournal.com/ Tech blog - http://use.perl.org/~Ovid/journal/