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.
In reply to Re: Chomp a numerical expression, return the answer.
by calin
in thread Chomp a numerical expression, return the answer.
by sub_chick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |