From: Dossy Date: 2002-12-27T21:30:41+09:00 Subject: Re: long strings On 2002.12.27, Matthew Huggett wrote: > Hi: > > I want to create a long string containing line breaks so I wrote > a = < a few lines .... > END > > but Ruby can never find the closing END anywhere before EOF. Is there > something I'm missing? In order to indent the terminating word, you need to indicate you want to indent it using "-", like so: a = <<-END a few lines .... END Otherwise, without the "-", you have to write: a = <<-END a few lines .... END Notice the closing "END" against the left margin. -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)