From: Paul Brannan Date: 2003-01-16T23:58:56+09:00 Subject: Re: ruby-dev summary 19198-19345 On Thu, Jan 16, 2003 at 01:19:13PM +0900, Tom Sawyer wrote: > p %Q{ > foo > bar > } Note that this prints "\nfoo\n bar\n" instead of "foo\n bar\n" like the original example would do. Note also that if the text you are printing includes a } character, this won't work. You'll have to use %Q[] instead or %Q%some string% (or some variant) instead, and it can get confusing trying to remember which characters you are and are not allowed to use inside your string. Since here documents are terminated by a particular line instead of by a particular character, they do not have this problem. Paul