From: Harry Kakueki Date: 2007-11-16T10:15:14+09:00 Subject: Re: Using a variable with gsub & su On Nov 16, 2007 6:34 AM, Peter Vanderhaden wrote: > > What I want to do is something like this: > > $inrec = $inrec.sub(',,\\',',$variable,') > > Unfortunately, I haven't been able to figure out the syntax for using a > variable with sub & gsub. Can someone help me out? Try this. ",#{var}," Harry -- A Look into Japanese Ruby List in English http://www.kakueki.com/ruby/list.html