News for hackers. Stuff that matters.
Re:The Awk Programming Language, Second Edition by Woeps on Thursday June 29, 2023 @07:34AM (#36519053)
Perl better? maybe or maybe not.

It can be very useful and they are pretty robust. I often found Perl scripts running for years and years without issues at different companies.

My main issue with Perl-scripts is that they often are not "readable" by anybody but the original creator. Which of course left the company. (not a fault of Perl itself tough)

But your millage may vary and any script can be made (un)readable.

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.
Re:The Awk Programming Language, Second Edition by jandrese on Thursday June 29, 2023 @12:45PM (#36523004)
I've always found it weird that people bash on Perl relentlessly for being hard to read and then turn around and praise Rust's syntax when it is full of stuff like this:

    fn print_d(t: &'static impl Display) {