2 ms·
Perl also supports heredocs — blocks of full lines with explicit terminator-line: print '-', substr(<<EOT, 0, -1), '!\n'; Hello, World EOT Prints: -H
by wruza 10y ago
Perl also supports heredocs — blocks of full lines with explicit terminator-line:
print '-', substr(<<EOT, 0, -1), '!\n';
Hello, World
EOT
Prints:
-Hello, World!
iirc sh-shells also have that.