yields "3" as ouput; the $cmd variable is "print $x" which eval'ed in your context produces the "3" output.$doit = "print"; $x = 3; $cmd = "$doit \$x"; eval($cmd)
Is that what you were after?
In reply to RE: eval output
by snax
in thread eval output
by thealienz1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |