In your test without eval, you executed $x * 10
In your test with eval, you executed 016 * 10
You got different results because you executed different code, not because you used eval. If you had executed the same code with the eval as without (e.g. if you had used eval( '$x * 10' )), you would have gotten the same result.
In reply to Re^3: Leading Zeros confound eval() ?
by ikegami
in thread Leading Zeros confound eval() ?
by misterperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |