in reply to Re: Just plain dumb
in thread Loop counter only works for 2

I usually use blah <<"END; Is there any difference between that and qq?

Replies are listed 'Best First'.
quoting: here doc verses qq Re: Re: Re: Just plain dumb
by andye (Curate) on Jan 09, 2002 at 16:59 UTC
    Not much, but you can use them in different ways.

    e.g. you can do this:

    print qq{the "cat" sat {furrily} on the 'so-called' mat};
    without having to escape any of the quotes, or the brackets.

    The same is true of a here document (e.g. <<"END") of course, in fact that's more adaptable because it can contain anything at all (except \nEND, obviously), but it takes more than one line.

    hth,
    andy.