develooper Front page | | Postings from April 2007

version-0.7201 patch

Thread Next
John Peacock
April 15, 2007 11:28
version-0.7201 patch
Message ID:
Based on a discussion started on p5p, I have revised the version object code to
always return the initializer string as the stringified version (much like I was
already doing for Module::Build::Version).  Thus what you put in is what you get
out; the sole exception is that the use of qv(1.2) *NOTE* one decimal place and
no leading 'v' *NOTE* will stringify as "v1.2" so we can successfully roundtrip
that value.

Attached, please find the patch to bring Module::Build into compliance.  I also
included a $VERSION scalar in M::B::Version, since that was missing (and already
patched in bleadperl).  I chose to keep the same $VERSION as the underlying release.  I had to tweak a couple of tests that expected a leading
'v' (which the old code would prepend).


John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Blvd
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About