in reply to evaluating fractions

You may interested in Math::Fraction and Math::Expr if eval doesn't do the best job for you.