Dave Storrs <[EMAIL PROTECTED]> writes:
[...]
> > print << FIRST_HERE_DOC; print << SECOND_HERE_DOC;
> > This is on the left margin.
> > This is indented one char.
> > FIRST_HERE_DOC
> > This is indented one char.
> > This is on the left margin.
> > SECOND_HERE_DOC
>
> RFC 111 specifically disallows statements after the terminator
> because it is too confusing. I would say that the same logic should apply
> to the start of the here doc; I'm not sure, just from looking at it, if
> the example above is meant to be two interleaved heredocs, one heredoc
> after another, or what.
It's two statements, separated by a semicolon. What's wrong? (Or, if
you don't like that, just take 2 here docs for the same statement).
This is totally unlike the here-document line.
The same (without indentation, of course) works for Perl today, and
confuses no-one. And just because Perl has some feature does not mean
you are obligated to use it in all programs.
--
Ariel Scolnicov |"GCAAGAATTGAACTGTAG" | [EMAIL PROTECTED]
Compugen Ltd. |Tel: +972-2-5713025 (Jerusalem) \ We recycle all our Hz
72 Pinhas Rosen St. |Tel: +972-3-7658514 (Main office)`---------------------
Tel-Aviv 69512, ISRAEL |Fax: +972-3-7658555 http://3w.compugen.co.il/~ariels