in reply to <<EOF syntax for reading into string
That's called a "here document". Please note that you have other options for unquoted, multiline strings, namely the uninterpolated q and the interpolated qq.
sub readstring { qq{ here is my unquoted multiline string }; }
|
|---|