in reply to Chomp a numerical expression, return the answer.
Check out the modules in Bundle::Math::Expression. They may be safer than a bare eval.
DISCLAIMER: I have never used any of these modules and can't vouch on their safety.