Ged Murphy 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.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl

--
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