News for hackers. Stuff that matters.
Re:The Awk Programming Language, Second Edition by tyingq on Thursday June 29, 2023 @07:33AM (#36519044)
The same shortcut syntax that people complain about does make perl really handy for one-time tasks where you're iterating on ideas. Lots of features there that make that easy. One example:

  #!/usr/bin/perl
  while (<>) {
      # various processing here
  } 
That (<>) construct accepts data from stdin, redirection or file(s) named as arguments and iterates over the data. There's lots of things like that throughout the language.
Re:The Awk Programming Language, Second Edition by jandrese on Thursday June 29, 2023 @12:40PM (#36522910)
And you can avoid even that minor boilerplate with the -n or -p flag. It even supports BEGIN and END like awk.