Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
March 26, 2010, 6:37 pm
rate this thread
A noob question about using a require statement. I tried including a
file that looks like this:
print << "endOfText";
This works fine in the main program but if I put it in a separate file
and include it with a require statement, it fails with the message
"Can't find string terminator "endOfText" anywhere before EOF at
test-require.pl line 1.
There must be some Perl subtlety that I am missing.
Re: using Print << marker with require statement?
Works for me, so there must be something you're not telling us. I
prseume your example above is indented for the benefit of Usenet, and
'endOfText' is actually at the start of the line? It needs to be.
If you are trying to use this for templating, there are better
approaches. Search the group (or search.cpan.org) for 'template' to get