From: Isaac Sanders Date: 2011-09-08T22:40:25+09:00 Subject: Re: Executing the output of a look --000e0cd292a6dc72e304ac6e333c Content-Type: text/plain; charset=ISO-8859-1 you could use eval, passing in the string. On Thu, Sep 8, 2011 at 9:35 AM, dwight schrute wrote: > Hi, > > I have this simple loop: > > (1..12).each do |i|ou > puts "t#{i}.showURL" > end > > Which produces the following output: > > t1.showURL > t2.showURL > t3.showURL > t4.showURL > t5.showURL > t6.showURL > t7.showURL > t8.showURL > t9.showURL > t10.showURL > t11.showURL > t12.showURL > > > > My question is this: How can I actually execute the output of the > script? (I want to execute the output, not just have it printed to the > screen) > > In bash, I would use backticks `` or dollar-bracket $() > > Thanks, > > Dwight > > -- > Posted via http://www.ruby-forum.com/. > > -- Sincerely, Isaac Sanders Section C-4B Vice Chief, Order of the Arrow Vice Chief of Administration, Tecumseh #65 Eagle Scout --000e0cd292a6dc72e304ac6e333c--