in reply to Re: EOF problem with sqlplus on Windows
in thread EOF problem with sqlplus on Windows

No. On Linux, I get
a b
as output.
Even this works:
perl -lwe 'my $x=qx(echo a echo b);print $x'
i.e. using the newline itself.

Nevertheless, HERE docs are not interpreted by the shell.
Update: Stupid me. Used echo instead of cat in testing.