# from Julian Mehnle
# on Wednesday 23 May 2007 01:35 am:
>| build_requires => {
>| Module => qv('0.002.1'),
>| }
>
>generates in META.yml:
>| build_requires:
>| Module: !!perl/hash:version
>Am I supposed to write version.pm-style version numbers literally in
>Build.PL as opposed to constructing version objects (and _can_ I do it
>or must I use numerical versions only)?
Should be able to write anything that version.pm can compare.
Module::Build::ModuleInfo will open the .pm and find the qr/$VERSION =/
line and make a version object out of what it finds. (Yes, I'm
over-simplifying that regexp a bit.)
>And/or is this an oversight in M::B?
Possibly, but only in that we should maybe be stringifying before YAML.
Care to write a test?
--Eric
--
"It is impossible to make anything foolproof because fools are so
ingenious."
--Murphy's Second Corollary
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------