the result of executing $string are captured into $@.
The parent is essentially correct but this part is not quite. $@ captures not the "result" of the evaluation, but rather the error message that would be displayed when the eval code died had it not been an eval. If the eval code finishes normally and does not die, then $@ is undefined.
In reply to Re^2: How do you evaluate a perl command that is in a perl string?
by Errto
in thread How do you evaluate a perl command that is in a perl string?
by perlNinny
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |