On Tue, Oct 16, 2001 at 09:30:44AM -0700, David Wheeler wrote: > > That's part of the reason that I almost never use here docs, but the > qq{} operator, instead. No need for a closing newline.
I have not read the RFC, but I do agree that qq is the way to go for formatted content. Or, perhaps something like it that in turn resembles the s{}{} operator? qf{^\s+}{ Now is the time for all good men...}; eq sub qf ($pat,$str) { $str =~ s/$pat//mg; return $str; } qf('^\s+', qq{ Now is the time for all good men...}); eq qq{Now is the time\nfor all good men...}; That fits with the current trend and gives us a very flexible way to deal with just about any sort of formatting. You would want to allow the usual m{} options after the second close, but I think the default behavior should be that of m{}mg I also think that the above should be abbreviated as: qf{}{ Now is the time for all good men...}; since useful defaults are always good. -- Aaron Sherman [EMAIL PROTECTED] finger [EMAIL PROTECTED] for GPG info. Fingerprint: www.ajs.com/~ajs 6DC1 F67A B9FB 2FBA D04C 619E FC35 5713 2676 CEAF "Write your letters in the sand for the day I'll take your hand In the land that our grandchildren knew." -Queen/_'39_