News for hackers. Stuff that matters.
Re:The Awk Programming Language, Second Edition by thesuperbigfrog on Thursday June 29, 2023 @08:31AM (#36519514)
>> My main issue with Perl-scripts is that they often are not "readable" by anybody but the original creator.

Anyone writing Perl scripts like this should not be trusted with any programming language.

Perl scripts are no less readable than bash scripts or Awk scripts. This is because so much of Perl was written to do the same work as bash, awk, sed, and the other related Unix text processing command line programs, but all under one roof.

Don't believe me? Take a look yourself:

https://learn.perl.org/

http://blob.perl.org/books/impatient-perl/iperl.htm

Re:The Awk Programming Language, Second Edition by ilovecurl on Thursday June 29, 2023 @03:10PM (#36525298)
Perl can also be hilariously unreadable: https://www.foo.be/docs/tpj/issues/vol4_3/tpj0403-0017.html
Re:The Awk Programming Language, Second Edition by thesuperbigfrog on Thursday June 29, 2023 @04:00PM (#36525892)
>> Perl can also be hilariously unreadable: https://www.foo.be/docs/tpj/issues/vol4_3/tpj0403-0017.html

Most programming languages can be obfuscated. That does not mean people write code in those programming languages like that:

C: https://www.ioccc.org/

Javascript: view-source:https://www.google.com/

The truth is that insulting Perl is considered stylish by some, so many people do despite knowing little to nothing about Perl and having never used it.

However, if you want Perl to be hilariously unreadable, why not write it in Latin:

https://metacpan.org/dist/Lingua-Romana-Perligata/view/lib/L...

Or Klingon:

https://metacpan.org/pod/Lingua::tlhInganHol::yIghun

Re:The Awk Programming Language, Second Edition by anthk on Thursday June 29, 2023 @05:15PM (#36526809)
This. I'm tired of these Gen-Z ers babbling about Perl and having no idea of what a proper Perl based project would look. Hint: most Debian tools and OpenBSD's package manager are Perl based.
Re:The Awk Programming Language, Second Edition by wott on Thursday June 29, 2023 @06:11PM (#36527515)
It's like when we, Gen-X ers, were repeating bad stuff about COBOL without having seen a single line of it.

Then I saw a real COBOL program and... well... it was even worse than what I had imagined :-)

Re:The Awk Programming Language, Second Edition by anthk on Friday June 30, 2023 @02:23AM (#36531220)
Perl has both oneliners/spaggethi code and games like Pangzero.