From: Paul Smith Date: 2009-09-22T00:43:36+09:00 Subject: Re: Incrementing variable names in a loop? On Mon, Sep 21, 2009 at 4:09 PM, Matt Brooks wrote: > Problem is when I create this variable with an incrementing name, I > can't seem to append it to the end of the signals[0], because I can't do > #{} with another #{} inside of it. I would like this: > write_log("Bin_\##{index}: #{signals[0].#{variable}}") write_log("Bin_\##{index}: #{signals[0] + variable}") Or just call = signals[0] + variable write_log("Bin_\##{index}: #{call}") -- Paul Smith http://www.nomadicfun.co.uk paul@pollyandpaul.co.uk