perl_beginner wrote:

>  While the code works fine with Linux, crumbles on XP saying "Can't find
> string terminator "EOM" anywhere before EOF at recordProxy.pl line 317".
> Line 317 in my code is: $response= <<"EOM";
>

To start with, you should lose the quotes around EOM in the opening of the
string assignment above. I'm not sure that those in themselves would cause the
code to fail, but they make it more confusing.

In the here document quoting syntax,
print <<END_SIGNAL
sets the typeglob END_SIGNAL, followed by a newline, as a multiline string
terminator, and opens the string.  The interpeter will then expect to see
another
END_SIGNAL
on a line by itself, and at the start of the line.  If it does not see the
terminator, or possibly if you confuse the hell out of it with the extra
quotes, it will not be able to compile the assignment statement [in this case
an implicit assignment to an anonymous string passed to print()].

Joseph



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to