From: dblack@... Date: 2007-07-07T01:08:12+09:00 Subject: Re: Pattern Matching Problem Hi -- On Sat, 7 Jul 2007, Ari Brown wrote: > > On Jul 5, 2007, at 11:27 PM, Morton Goldberg wrote: > >> >> Others have pointed out a problem with your case statement, but I think >> there's another problem here -- your #{$1} substitution isn't going to work >> in single-quoted string. > > You're serious? I can't use variable substitution in a single quoted string? > I ran into that a while ago, but i just thought it was some glitch on my > part! > > Why is that so? Whats the difference between single and double quoted > strings? Interpolation doesn't work in single quotes :-) And a few other things, especially: "\n" newline '\n' \n David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)