Eric Wilhelm wrote: > See John's "Yet another version.pm" message from Monday: > > - cmp_ok( $pm_info->version, '==', '1.23', > + # Test::Builder will prematurely numify objects, so use this form > + ok( $pm_info->version == '1.23', > > But after looking at it again, shouldn't that be "eq"?
Doesn't matter; both numeric and string comparison operators are overloaded. Larry stated at one point that version numbers in Perl6 would be "numbers" not "strings" but that could change. The only reason for the quotes on the right-hand side are to prevent unintentional floating point nonsense (decimals ending in 3 have a strong tendency to blow up in twos-complement notation). Change it to "eq" if it makes you feel better. 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