[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] syntax error



On Wed, 29 Nov 2000 09:34:10 -0500, Chris Nandor wrote:

>Quotes are NOT included in the search.  Try and see:
>
>print <<"EOP";
>la la la
>EOP
>
>By default, the data in the here-doc goes through double-quotish
>interpolation.  You can change that with <<'EOP'.  So <<"EOP" and <<EOP are
>the exact same thing, doing double-quotish interpolation, while <<'EOP'
>does no interpolation.

It's even more complex than that. The string terminator need not be a
bareword. It can contain all sorts of things, even spaces. You can't do
that in the <<BAREWORD format.

print <<"!FINGERS IN EARS!";
la la la
I can't hear you
!FINGERS IN EARS!

-- 
	Bart.

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org