From: Leonard Cuff Date: 2008-02-16T04:09:41+09:00 Subject: Re: array of here documents On 2/9/08 3:09 AM, "Robert Klemme" wrote: >> On 09.02.2008 12:04, Mark Woodward wrote: >> On Fri, 8 Feb 2008 18:17:28 -0500 >> Xavier Noria wrote: >> >> Is there any reason you wouldn't set up the heredocs first and then add >> them to an array? >> >> HD1 = <> This is a heredoc. >> The first of 2. >> ENDHD1 >> >> HD2 = <> This is the second heredoc. >> ie the last. >> ENDHD2 >> >> a=[HD1,HD2] > > Waste of constants / variables. > > robert > I didn't know constants and variables were in short supply, I'll try to be more frugal. :-) :-) I hope you laugh rather than take offense. I do want to make the point that code that is easier to understand by novices is inherently more maintainable. Writing "compact" code is often over valued, IMHO. I would much prefer to see Marks code, because of the ease of understanding it. Leonard