I happen to have written a module that handles the evaluation of expressions without messing with unsafe solutions such as eval: Math::Expression::Evaluator. It does the hard part of the task for you.
In reply to Re: Perl Script for reading a mathematical expression
by moritz
in thread Perl Script for reading a mathematical expression
by rahul02
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |