Hi Monks,
I'd like to have an text entry box on a web page to allow users to enter math expresions and calculate them. Naturally, I first thought of using eval perl, something like:
where $1 and $3 are the numbers, and $2 is the operator.
However, the potential for disaster is fairly large, so I'm wondering is there a safer way of doing this not using eval?