On Fri 25 Aug, Nathan Wiger wrote:
> > I was sorta going under the assumption that <<< would cause leading and
> > trailing whitespace to be ignored (not stripped) when looking for the
> > end-of-here-doc indicator. Because whitespace is ignored, I was then
> > proposing some new syntax for stripping whatever one likes from the
> > contents of the here-doc.
>
> I think there's two ideas here in the RFC, one great, the other
> debateable:
Ok, lets split in 2
>
> 1. Ignore leading/trailing whitespace in here string terminators.
> All of these should work:
>
> EOL
> EOL
> EOL # this is the end of the here doc
>
> I don't think a special syntax is needed just for this. Make
> this the default (so "print <<EOL" does this automatically).
> If this makes you nervous, use 'This_is_the_end_of_the_string'
> or some other suitably long EOL marker.
I will make this RFC 111 issue 2
>
> 2. That leading whitespace should be stripped off here docs. I
> am personally against this, for all the reasons everyone has
> mentioned. It's too specific a "special case". And there's
> already an extremely easy way to do this (I think TomC posted
> it again) in Perl 5.
This will be in another RFC. Considering the posts, this might die,
but perhaps a more generic filtering of Heredoc input might be more usefull.
Richard
--
[EMAIL PROTECTED]