in reply to Re^2: Probably an easy one - store command in variable.
in thread Probably an easy one - store command in variable.
There are also some subtle issues and bugs with eval $string and scoping, but you're unlikely to run into them if you use eval $string sparingly. update: as nobull states: in this particular case, you've ran into one such issue: a lexical variable declared inside a string eval is not available outside of the eval statement :-)
|
|---|