SPUG:Here documents
Marc M. Adkins
Marc.M.Adkins at Doorways.org
Fri May 2 17:51:42 CDT 2003
> Ok, I should know the answer to this...
>
> Is there any way to allow a HERE document delimiter to be indented? Ala
>
>
> if ( blah1 ) {
> while ( blah2 ) {
> unless ( blah3 ) {
> $something = <<EOM
> Here's my text
> ain't it fun
> heeha
> EOM
> }
> }
> }
>
>
> Instead of having EOM at position 0 on the line?
I believe the only way to do this is to use Filter::Util::Call or
Filter::Simple to pre-process the file during compilation. I thought that I
had seen an example of doing this (I remember it as being pretty slick) but
I can't find it right now.
mma
More information about the spug-list
mailing list