in reply to eval output
$doit = "print"; $x = 3; $cmd = "$doit \$x"; eval($cmd) [download]
Is that what you were after?