irah has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have to execute a math operation, but the operation itself will be dynamic. For example, I have three different variables a,b,c with values 4, 2 and "-" (operator) respectively. Please let me know how can I evaluate the statement and produce the result 2 i.e (4-2 = 2)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Execute a string which has math operation
by Athanasius (Archbishop) on Jan 05, 2014 at 04:40 UTC | |
by bulk88 (Priest) on Jan 05, 2014 at 07:23 UTC | |
by Preceptor (Deacon) on Jan 05, 2014 at 10:22 UTC | |
by irah (Pilgrim) on Jan 05, 2014 at 04:44 UTC | |
Re: Execute a string which has math operation
by Anonymous Monk on Jan 05, 2014 at 07:29 UTC |