Juerd wrote:

Thomas Seiler skribis 2004-11-25 14:52 (+0100):


Is $heredoc = «END; the same as $heredoc = <<END; ?



I certainly hope not.

Quoting the delimiter is needed, by the way.

How is <<'END' disambiguated from <<'qw' list>>, anyway?



Seeing the « in the context of a here-doc made me think "can you do a »<< here-doc?"


So, something like :

@text = »<<END;
text1
END

text2
END

text3
END

text4
END

for @text { ...}



The hard question about this is: how do you know when you've hit the last END? especially if the text you're loading looks like Perl code, or if you have different <<END later in your code?

btw, should it be »<<, <<«, or »<<«?

-- Rod Adams



Reply via email to