On Wed, Nov 26, 2003 at 07:17:55PM +0000, Mike Stok wrote: > Sometimes it is useful to pick your quotes carefully e.g. > > str.sub(/'/) { '\\\'' } > > as you're quoting a single quote then using double quotes saves a \ > > str.sub(/'/) { "\\'" } Good point. I generally make a habit of using single quotes when I'm not doing any interpolation and double-quotes when I am, but this would be a logical place to make an exception. :) -Mark