From: Rich Kilmer Date: 2002-04-04T06:02:54+09:00 Subject: RE: Ruby, python, perl, ... > -----Original Message----- > From: Chris [mailto:chris@cmb-enterprises.com] > Sent: Wednesday, April 03, 2002 3:50 PM > To: ruby-talk ML > Subject: Re: Ruby, python, perl, ... > > 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. > > Oh well, chalk it up one more of the peculiarities of Python I'm fond of. OK..how about: foo = <<-XDFGDFNG here's a single quote mark XDFGDFNG ...so many variations...so little time ;-)