Subject: | cmp_ok() treats objects as strings. |
Given $obj is numerically overloaded this
cmp_ok($obj, '==', 42);
should be equivalent to this
print "ok" if $obj == 42;
Currently cmp_ok() stringifies the object so it is not. It will have to be smarter and numerify if the comparision op is a numeric one.