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

RE: [MacPerl] syntax error



At 9:14 -0500 2000.11.29, Nicholas Rei Shiedln wrote:
>print<<"EOP"; #this looks for the string "EOP", quotes inclusive
>#...
>EOP
># this should be then "EOP"

That is false.  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.

-- 
Chris Nandor                      pudge@pobox.com    http://pudge.net/
Open Source Development Network    pudge@osdn.com     http://osdn.com/

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