Dominik Honnef wrote: > On [Tue, 03.03.2009 23:28], Daniel Schoch wrote: >> Hi, >> >> I have a string >> s = "$DIR/test/$FILE" >> >> Is there an easy way to expand this with the defined environment >> variables? > What do you mean by environment variables? The stuff in ENV, or the > constants like __FILE__ or simply global variables? I mean the stuff in ENV. SHELL: export DIR=x export FILE=y.z RUBY: I'd like to know the easiest way from s = "$DIR/test/$FILE" to s = "x/test/y.z" -- Posted via http://www.ruby-forum.com/.