From: Todd Benson Date: 2009-03-01T01:03:47+09:00 Subject: Re: How to put multiple values into a variable. On Sat, Feb 28, 2009 at 9:54 AM, Jeff Schwab wrote: > Harry Nash wrote: >> >> I am new to coding, I have tried to place a number of data strings into >> one variable but I am missing something in the format. See example >> below. >> Note each part of the line after = does have a real value, I just >> can't format the string. >> >> file-link = Dir.pwd, "#{filename}", "#{mp3-title}", "#{mp3-artist}" > > TTBOMK, Ruby variable names cannot include hyphens. Good eye. I missed that one. Also to the OP, you could do what you did in your code and use #join instead of a bunch of + or << operators. Todd