in reply to Re: How to evaluate a mathematical formula that is stored in another file?
in thread How to evaluate a mathematical formula that is stored in another file?

Thanks. What if I wanted to execute a basic mathematical formula? That is, not a Perl code from another source file but just a mathematical expression, #start of formula file z = a + b #end of formula file a and b values will be taken from my data/parameter file. This is what I am going for. Sorry if my explanation is not clear.
  • Comment on Re^2: How to evaluate a mathematical formula that is stored in another file?

Replies are listed 'Best First'.
Re^3: How to evaluate a mathematical formula that is stored in another file?
by hippo (Archbishop) on Mar 20, 2018 at 11:45 UTC

    If the expressions aren't Perl then you cannot eval them. Sounds like you want Math::Symbolic instead.