M
me
A noob question about using a require statement. I tried including a
file that looks like this:
print << "endOfText";
Sample Text
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.
Thanks,
file that looks like this:
print << "endOfText";
Sample Text
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.
Thanks,