On Thu, 14 Sep 2000 10:52:16 -0700, Nathan Wiger wrote:

>We already have q//, qq//, and qx// which duplicate their
>functions far more flexibly. Question: Do we really need here docs?

With your above functions, you always need to be able to escape the
string end delimiter. Therefore, you will always have to escape
backslashes.

You don't need to escape backslashes, or anything else, in a
single-quoted here-doc.

Here-docs are extremely handy if you have to incorporate text from an
external file, which perl is supposed to print out verbatim.

Their disadvantage is that they'll always end with a newline.

-- 
        Bart.

Reply via email to