When I try it, it prints "1" to the screen, just as it should.
Now, if you had said print "$result\n"; at the end, that 1 would be on a line of it's own, and more easily visible - which is what I think your problem was.
In reply to Re: How to use eval?
by matija
in thread How to use eval?
by iwanthome
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |