3 ms·
Working with text in general is what Perl excels at so it baffles me that you guys with 20 years experience was not able to make that work. Capture::Tiny is one
by vgy7ujm 10y ago
Working with text in general is what Perl excels at so it baffles me that you guys with 20 years experience was not able to make that work. Capture::Tiny is one module just from the top of my head. That module lists 10-20 other modules that probably can do the same things like IPC::Open3. Now I don't know exactly what your use case was but I have always been able to solve my capturing of stdout and stderr with Perl.
Concurrency is definitively a pain point since it is not built into the core but for Web and even certain terminal apps I have found Mojo/Mojolicious to be both well designed and well maintained.
I don't deny that sometimes Java, Erlang or Go is the correct tool. I am actually very interested in Go and use many tools written in it like Docker/Kubernetes, Consul, Terraform etc. Go will probably be my choice for anything that needs concurrency until Perl catches up or something else better comes along.
But I will not abandon Perl for my unix scripting needs as it is still the best in my opinion. Getting max work done in a short time and with less code with max convenience and unix-y feel is where Perl whipes the floor with every other language. And that is also a sweet spot for DevOps needs where you don't develop everything from scratch. You take the best practices tools of the day and glue it together with Perl.
I am sad to see someone like you that clearly was involved with Perl at one point abandon it completely. The thing is that for every negative comment someone with a bit of clout spews on the internet there needs to be hundreds of positive ones to counter it. I still hear that "Perl is dead" because of that guy who clearly did not know Perl and used an example from the Stone Age that at one time was considered a feature but we now know is a vulnerability. It also exists in PHP by the way, and web developers worth their grain of salt have known better than to let user data just pass unsanetized to internal execution for quite some time now...
I call TIMTOWDI and hopefully we will se you back in Perl some day. You know it is a very special little language and if you ever "clicked" with it you will always miss its good stuff.