From: "Mark J. Reed" Date: 2004-05-06T05:29:01+09:00 Subject: Re: Great response! Thanks, Mark "Richard Lionheart" writes: >I feel somewhat exhonerated of stupidity by noting that that Thomas&Hunt >discuss Here Documents in two places, pp. 52. 204, but a quick reread >doesn't reveal the nugget you reported ... Look on page 204 again: "If a quoted string was used to specify the terminator, its quoting rules will be applied to the here-document; otherwise, double-quoting rules apply." It doesn't jump out at you, but it's there. Incidentally, Ruby borrowed the here-document behavior, complete with quoting rules, from Perl. Perl's here-documents were, in turn, inspired by those of the UNIX shell, which also distinguishes based on the quoting of the terminator. The main difference in the shell is that a here document is treated as the contents of a file fed as input to a command, rather than as a string specified on the command line. >Thankfully, we programmers have the Internet and this NG nowadays!! Indeed! -(another) Mark