Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
wruza
on Jan 27, 2017
|
parent
|
context
|
favorite
| on:
Things Every Hacker Once Knew
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.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: