On Tue, April 21, 2009 1:23 pm, Eric Wilhelm wrote: > # from Yitzchak Scott-Thoennes > # on Tuesday 21 April 2009 13:02: >>> I don't "dislike" the underscore. It _does_ _not_ _work_ as a >>> delimiter in a version number because perl does not treat it as such. >> >> Yes, it does, wearing its version object (aka version.pm) hat. >> >> perl does not treat vstrings the same as versions, and that's OK. > > No, it is not ok to get success from 'use foo v1.2.10' when foo's > $VERSION is v1.2.3_1 -- especially when a version.pm comparison would > tell you that v1.2.10 > v1.2.3_1. > > If version.pm gives a different result than use(), version.pm is wrong.
Works just fine for me. But then, I'm sticking to the rule: $VERSION SHOULD be a version object. $VERSION MUST be a number or version object.