On Thu, 24 Aug 2000 21:06:30 -0700, Nathan Wiger wrote:
> 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.
Exactly. Choosing "EOL" as the end-of-string marker while it exists in
the text on a line of it's own ignoring whitespace, is a rather poor
choice. There's a reason why you can choose your own end-of-string
marker.
Well... currently I tend to pick a different EOL marker for every here
doc in a script, just to make sure that I don't accidently make one
large here doc comprised of two intended here docs and the code between
them. There's no syntax error in that.
--
Bart.