That's because you never pass the string through perl so there's no way it could interpolate it. You'd want to use eval or s///e, but if you don't trust your input you'd want to be careful doing that. You might also check out a module like AppConfig which gives you a config file parser which will do this sort of interpolation to some degree.
In reply to Re: Forced resolution of environment variables
by Fletch
in thread Forced resolution of environment variables
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |