Hello Monks,
I have tried to find an answer on this issue for the past day or so. I saw a similar thread:
Value of a scalar specified by a second scalar ,but still came out empty handed. My problem child is here:
chomp($exp = <STDIN>);
$out = 'exp';
print $$out, "\n";
I'm not sure if referencing is the proper thing to do here since I am getting an "unitialized variable" here. The
<STDIN> is an expression along the lines of:
(7 * 3) + (2 + 1)
I am trying to get this block to return the answer, which in this case is
"24". When I just do:
print "$exp\n" I get the expression back and not the answer. I was hoping I could get a few pointers on this.
thank you in advance.
Es gibt mehr im Leben als Bücher, weißt du. Aber nicht viel mehr. - (Die Smiths)