See Math::Expression::Evaluator.
In reply to Re: arithmetic equation parser ... by BrowserUk in thread arithmetic equation parser ... by Anonymous Monk