in reply to securely evaluating an expression

There is nothing dangerous about the code fragment you posted.

The only thing that is dangerous is executing code you got from the bad outside world without checking it won't do anything it shouldn't do. But that's regardless whether you use eval or some other means to execute it.

You probably want to make use of the Safe module.

Abigail