Tom Christiansen wrote:
>
> I still like this solution prototype:
>
> sub comment($) { }
>
> comment <<"END OF FIRST COMMENT";
> asdf
> asdf
> asdf
> asdf
> asdf
> END OF FIRST COMMENT
So do I. Actually, here-docs can be a bit unwieldy, what with the
requirement for the end tag to begin in column 0. die fortran die!
Proposal: here-docs specified with regexes, and no special
meaning for newlines.
comment <</EOC/; this is an arbitrary comment. EOC
Or:
comment <</^\s*EOC/; this is an arbitrary comment.
more commentary text. EOC doesn't stop it here, but here:
EOC
--
John Porter
- Re: RFC: multiline comments Glenn Linderman
- Re: RFC: multiline comments Michael Mathews
- Re: RFC: multiline comments John Porter
- Re: RFC: multiline comments Edwin Wiles
- Re: RFC: multiline comments Jarkko Hietaniemi
- Re: RFC: multiline comments Jarkko Hietaniemi
- Re: RFC: multiline comments Russ Allbery
- Re: RFC: multiline comments Mike Pastore
- Re: RFC: multiline comments Uri Guttman
- Re: RFC: multiline comments Tom Christiansen
- Re: RFC: multiline comments John Porter
- Re: RFC: multiline comments Tom Christiansen
- Re: RFC: multiline comments John Porter
- Re: RFC: multiline comments Tom Christiansen
- Re: RFC: multiline comments Martyn J. Pearce
- Re: RFC: multiline comments Michael Fowler
- Re: RFC: multiline comments John Barnette
- Re: RFC: multiline comments Tim Jenness
- Re: RFC: multiline comments Michael Mathews
- Re: RFC: multiline comments John Barnette
- Re: RFC: multiline comments Johan Vromans
