in reply to assign a string using multiline format
is equivalent tomy_function(<<END, <<END . <<END); a END b END c END
You can of course use different names, i.e.my_function("a\n", "b\n" . "c\n");
(well, that's not really sensible...)my_function(<<A, <<B . <<C); a A b B c C
Note that the here-docs must be in order, and start at the end of the line, i.e.
prints 1 2 3 4.printf <<'END', 1, 2, %d %d %d %d END 3, 4;
|
|---|