in reply to
<<EOF syntax for reading into string
You missed a "=". Try
$x = <<"EOF";
Comment on
Re: <<EOF syntax for reading into string
Download
Code
In Section
Seekers of Perl Wisdom