On Thu, Apr 23, 2009 at 8:37 AM, Zefram <zef...@fysh.org> wrote: > David Golden wrote: >>The problem -- the real, core problem -- is that perl *has* to be able >>to compare them. >> >> # Foo.pm >> package Foo; >> use version; our version = qv("v1.7.0"); >> 1; >> >> # main.pl >> use Foo 1.06; # dies --> 1.06 is 1.60.0 > > Why shouldn't this situation be an error, and die because "1.06" can't > be compared with "v1.7.0"?
Did you actually go try that in Perl 5.10? No? Here's what you'll get: $ perl main.pl Foo version 1.06 required--this is only version v1.7.0 at main.pl line 1. BEGIN failed--compilation aborted at main.pl line 1. It's not a question of *should* or *shouldn't*. It's what perl 5.10.0 does *already* right now. If you're proposing to change that in 5.10.X or blead, then you should be having that discussion on p5p, not here. Nor do I really want to have version comparision logic that is different for <5.10.0, 5.10.0 and >5.10.0. One change in logic is enough for me, thank you. It's not the greatest, but it's done now, so I just want to make the best of the situation. -- David