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

Re: [MacPerl] Here-Document problem



Your script works on my mklinux box...so it must be some problem UNIX
implementations of Perl have :-) MacPerl is really particular about
here-documents.  Try this instead:

print(<<MY_EOF);
this is a test
MY_EOF

I'd bet that works much better...but I could be mistaken...

-David


On Thu, 10 Apr 1997, R. Mark Adams wrote:

> I have been having some difficulty with the Perl "here-document"
> operator in MacPerl.  The following script works fine on my UNIX box:
> 
> print(<<"MY_EOF");
> this is a test
> and so is this 
> and so is that...
> MY_EOF
> 
> But fails with the following warning on my Mac:
> 
> # Can't find string terminator "MY_EOF" anwhere before EOF.
> 
> My real application is embedding AppleScripts within MacPerl, and
> keeping them easy to read.  Any suggestions on this front would be
> appreciated.
> 
> Thanks-
> 
> Mark
> -- 
> | R. Mark Adams, PhD         |   rmadams@alphaGene.com   |  |||||  |
> | Director of Bioinformatics | "Fortune favors the bold" |   - <|  |
> | AlphaGene, Inc.            |           -Virgil         |    v |  |
> |         http://www.skotophile.com/people/Mark.html     |   \_/   |
> 
> ***** Want to unsubscribe from this list?
> ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch
> 


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch