From: Yohanes Santoso Date: 2002-04-04T06:30:24+09:00 Subject: Re: Ruby, python, perl, ... Chris writes: > In article <3CAB5620.F1D693C1@path.berkeley.edu>, > Joel VanderWerf wrote: > > > Chris wrote: > > > > > Ah, but the real magic of """ is something like: > > > > > > >>> foo = """here's a single quote mark""" > > > >>> foo > > > "here's a single quote mark" > > > > What about > > > > irb(main):001:0> foo = %{here's a single quote > > mark} > > "here's a single quote mark" > > You'd still have to escape out any } that might actually occur in the > string. foo = %q# quotation marker can be any non-alphanumeric char # foo2 = %Q@ foo=#{foo} @ YS.