From: Mark Hubbart Date: 2004-05-03T15:18:51+09:00 Subject: Re: print < As I read Thomas&Hunt p. 205, Ruby should build a quoted string with > the > text from < quoted > strings in that block, as follows. Why? In a normal heredoc, you can do variable interpolation: a = "foo" => "foo" str = < "text foo here\n" You can get around this in two ways. One, mentioned by a previous poster, is to escape the interpolation: str = < "text #{a} here\n" Another way, if you aren't going to need interpolation in that particular string, is to use a non-interpolated heredoc: str = <<'TEXT' text #{a} here TEXT => "text #{a} here\n" Single quotes around the heredoc word will make it non-interpolated. HTH, --Mark