SPUG:Here documents
David Dyck
david.dyck at fluke.com
Fri May 2 14:30:06 CDT 2003
On Fri, 2 May 2003 at 12:06 -0700, Brian Hatch <spug at ifokr.org> wrote:
> Is there any way to allow a HERE document delimiter to be indented? Ala
> ....
> Instead of having EOM at position 0 on the line?
The perl FAQ states:
But the HERE_TARGET must still be flush against
the margin. If you want that indented also,
you'll have to quote in the indentation.
($quote = <<' FINIS') =~ s/^\s+//gm;
but that isn't quite what you want.
There might be some way to do it using source filters, either
Filter::Simple
or
Filter::Util::Call
I bet the author of Filter::Simple could whip
something up, it he was still funded.....
More information about the spug-list
mailing list