Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
freeone3000
on May 24, 2018
|
parent
|
context
|
favorite
| on:
The Awk Programming Language (1988) [pdf]
`perl -n` wraps code in an awk-alike start and finish stanza.
`perl -p` wraps code in a sed-alike start and finish stanza.
Koshkin
on May 25, 2018
[–]
So, basically, if I understand, Perl has both awk and sed built in.
vram22
on May 25, 2018
|
parent
[–]
Yes, as per what I read long ago, Larry Wall created Perl as a sort of superset of parts of awk, sed, shell and C (maybe not shell).
harry8
on May 29, 2018
|
root
|
parent
[–]
absolutely shell. Perl acts as glue between multiple processes very nicely. $foo = `foo_command`; is great. Opening named pipes. Python is more awkward because it's less like shell.
vram22
on May 29, 2018
|
root
|
parent
[–]
Thanks, didn't know that about Perl.
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:
`perl -p` wraps code in a sed-alike start and finish stanza.