←back to thread

212 points todsacerdoti | 1 comments | | HN request time: 0s | source
Show context
jph00 ◴[] No.46006734[source]
There’s already a language that provides all the features of awk plus modern language conveniences, and is available on every system you can think of. It’s Perl.

It even comes with an auto translator for converting awk to Perl: https://perldoc.perl.org/5.8.4/a2p

It also provides all the features of sed.

The command line flags to learn about to get all these features are: -p -i -n -l -a -e

replies(2): >>46006936 #>>46011256 #
groby_b ◴[] No.46006936[source]
Yes, but it's not in any way relevant to the topic of the article except both mentioning awk.

The author specifically wanted a functional variant of awk, and they wrote the article because it meant updating their priors on LLMs. Both are interesting topics.

I'd love to hear a Perl perspective on either

replies(1): >>46011203 #
1. AdieuToLogic ◴[] No.46011203[source]
> The author specifically wanted a functional variant of awk ... I'd love to hear a Perl perspective

I believe Functional programming in Perl[0] may answer some of the questions related to using FP concepts with Perl.

0 - http://functional-perl.org/