Mike Schilli via RT wrote:
Show quoted text> Great! One thing I'd like to add (and I added it as a comment to
> rt.cpan.org twice, but comments don't seem to stick) is that it behaves
> differently on perl 5.6.1 and 5.8. On 5.6.1, it throws an error:
>
> ./test.pl
> "v0.0.8" is not exported by the Foo module at ./test.pl line 3
That's a different error; if you use qv() after the 'use' line, it
assumes this is supposed to be one of the @EXPORTS_OK items (to use
Exporter-speak), and *not* a version comparison (which only works with
bare numbers). I don't know how I am going to get around that (apart
from inheriting version::import that DTRT).
Show quoted text> Can't continue after import errors at ./test.pl line 3
> BEGIN failed--compilation aborted at ./test.pl line 3.
OK, I'm on the trail of what is really going on with the original
report. A while ago, I introduced code such that if the input to
several of the ways that version objects could be created was a floating
point number (NV), then I forced it into a string using sprintf() (since
otherwise I would be dependent on the vagaries of how Perl does the
conversion internally).
Unfortunately, there doesn't appear to be a way to force sprintf() to
produce a non-exponential representation once the number gets below
10**-5. I'm going to have to re-write the parser to handle exponential
notation I'm afraid.
John
--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5748