http://www.perlmonks.org?node_id=202866


in reply to Small Calculator!

You'll find few monks willing to assist on what could very well be a homework problem unless you show some indication you've tried it yourself. Show us some code, and we'll help you along.

Here's hint though. Look at the eval() function.