From: dwight schrute Date: 2011-09-14T21:22:18+09:00 Subject: Re: Using a loop to run similar commands I actually played around a bit and then did this: 1.upto(12) do |i| eval "create#{i} = agent.get(t#{i})" end -- Posted via http://www.ruby-forum.com/.