On Thu, Sep 30, 2004 at 02:39:04PM +0100, Murphy,  Ged (Bolton) wrote:
> >> I'm trying to print a block of code using 'print <<LABEL; but am
> >> getting an error stating perl can't find the termination label.
> >> Test code and error as follows:
> >> 
> >> #!/usr/bin/perl
> >> 
> >> print <<TEST;
> >> this is my tester text
> >> TEST
> >> 
> >> Can't find string terminator "TEST" anywhere before EOF at photo.pl
> >> line 3.
> >> 
> >> Anyone got any ideas as to why it's doing this?
> >
> >The here-document syntax is described in "perldoc perlop", and the
> >author of that part of the Perl docs had a couple of ideas.
> 
> I've been through the here-documentation in the perlop doc and it appears my
> syntax is correct.
> Does anyone have any ideas as to why I am getting this error?

Do you have a newline on line 3?

> Is it possible this is an interpreter error?
> I'm running activestate's perl, v5.8.0 built for MSWin32-x86-multi-thread

But no carriage return or other white space?

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to