From: jackster the jackle Date: 2008-01-12T07:13:25+09:00 Subject: Re: Trying to squeeze a variable in here => ... Stefano Crocco wrote: > Alle venerd狸 11 gennaio 2008, jackster the jackle ha scritto: >> >> The number "1" in the above piece of code needs to be changed to a >> variable. >> >> Any ideas on how to squeeze a variable in there? >> >> thanks >> >> jackster.mobi > > Use string interpolation: > > response = m.get(["ifInOctets.#{number}]) > > Stefano that did the trick...thanks alot for the help on that Stefano jackster.mobi -- Posted via http://www.ruby-forum.com/.