Re: [Module::Build] Re: [Yaml-core] yaml_dump on version objects
Status: Beta
Brought to you by:
kwilliams
|
From: John P. <jpe...@ro...> - 2006-02-16 17:46:21
|
Ken Williams wrote: > > On Feb 15, 2006, at 4:06 PM, John Peacock wrote: >> Never mind. Upgrading YAML to current (0.58) works much better and >> setting $YAML::Stringify does exactly what we want. > > Is there no way to support YAML 0.35? That's our current YAML > prerequisite. Nope. Once you throw an object into the mix, YAML gets very confused. Apply my patch and try it with 0.35 and you will see: 1) a screenful of warnings thrown during the META.yml creation; 2) worse yet, the META.yml is malformed (it doesn't include either a dump of the version object as hash nor the correct stringified representation). I can, with some more difficulty, patch M::B to force a stringification of version objects prior to inserting them into the $node, but it isn't nearly as clean. Is there some overriding reason you are avoiding upgrading the YAML prereq to 0.50 (which in itself isn't even the current rev)? John -- John Peacock Director of Information Research and Technology Rowman & Littlefield Publishing Group 4501 Forbes Boulevard Suite H Lanham, MD 20706 301-459-3366 x.5010 fax 301-429-5748 |