Perhaps looks_like_number from Scalar::Util would be of use?
In reply to Re: check if 2 values are equal by Fletch in thread check if 2 values are equal by eXile