Is there any way to hide the $a variable from being visible within the eval? In fact, I'd like to hide from the eval'd code all variables and functions that were declared outside of it. Is this possible?$a = "VAR_A"; $b = "print \"VAR_B (\$a)\\n\""; eval $b;
In reply to limiting scope of 'eval'?? by ManFromNeptune
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |