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

[MacPerl] Is this a bug?



I've been reading Randal Schwartz's Unix Review column no. 12, which is
about "here documents".

Here's a short script (saved in file t.pl):

#! perl -w
        print <<HELLO;
        hi
        HELLO

Seems like this should be equivalent to

#! perl -w
        print "hi\n";

but when I try to run it, MacPerl 5.1.3r2 tells me

# Can't find string terminator "HELLO" anywhere before EOF.
File 'develop:Mac_Perl:mycode:t.pl'; Line 2

Is there some (good) reason this doesn't work on a Mac?

Thanks for any insight.

Bob Pyle, Cambridge, MA, USA