Steffen Winkler via RT wrote:
Show quoted text> # numeric context doesn't work
> print 0+qv('1.2.3');
> Operation `+': no method found,
> left argument has no overloaded magic,
> right argument in overloaded package version at ...
That's actually a deliberate design decision. Version objects (in their basic
form) are intended to be immutable "set and forget" values. I have some ideas
for a version::Math class which will allow specific mathematical operations to
be performed (for example, automatically incrementing a module $VERSION before
release to CPAN).
What use case did you have for being able to use version objects in this way?
John
--
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