# 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. IMO, it's not even worth trying to sort through the scenarios where using two different comparison mechanisms is going to cause failure. I'll guess that the only reason this isn't already a complete mess is that no distro besides SVK has used _ in extended versions. Can anyone give a reason for use() to treat version.pm objects and v-strings differently? --Eric -- "Time flies like an arrow, but fruit flies like a banana." --Groucho Marx --------------------------------------------------- http://scratchcomputing.com ---------------------------------------------------