Dominik Honnef wrote: > | >>> DIR=x FILE=y.z irb > | >> s = "$DIR/test/$FILE".gsub(/\$\w+/) {|m| ENV[m[1..-1]]} > | => "x/test/y.z" > > Thats how I would do it. Perfect, thanks. I sometimes have a hard time with those efficient one-liners. It's all so cryptic. -- Posted via http://www.ruby-forum.com/.