At 05:41 PM 8/24/00 -0600, Tom Christiansen wrote:
>But you don't need that when you can and possibly should just write this:
>
> print <<" EOF" =~ /^\s*\| ?(.*\n)/g;
^^^^
> | Attention criminal slacker, we have yet
> | to receive payment for our legal services.
> |
> | Love and kisses
> |
> EOF
Others may be focussing on the problem of stripping off leading white space
from the here doc contents, but I don't so much care about that because I
think the Ram recipes are fine; I'm more concerned about being able to
indent the terminator and not have to count spaces in the <<.
Unfortunately the quoting on the terminator following << decides the type
of interpolation; we're missing a way of indicating how to recognize the
terminator other than an exact match. If we say that <</\s*FOO\s*/ means
terminate on a line matching that pattern, then how can we also say whether
we want variable interpolation or not? Which is a pity, 'cos I kinda liked
the idea :-)
--
Peter Scott
Pacific Systems Design Technologies