P is for Practical | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
When comparing the numerical data for equality are you ever comparing numbers of different precision? If not why not just convert all data to strings and compare the string results. In deciding whether or not to cover the data you could use something like:
$string = to_string($string) unless is_string($string); (pulled from http://search.cpan.org/~dwheeler/Data-Types-0.06/lib/Data/Types.pm)
I am new to this so this is just a thought. In reply to Re: Equality checking for strings AND numbers
by Anonymous Monk
|
|