Re:Why does OpenBSD still include Perl in its base installat...
by microtherion on Saturday May 30, 2020 @09:30AM
(#23361034)
> I'd prefer to write complex scripts in python, but for simple scripts, I find a mix of bash and perl to be useful.
Unfortunately, simple scripts that are found to be useful often grow into complex scripts.
A few weeks ago, I wanted to write some functionality that seemed "simple" enough to be a good fit for make+bash. A week later, I ended up tossing the whole thing and rewriting it in python.
Re:Why does OpenBSD still include Perl in its base installat...
by soraminazuki on Saturday May 30, 2020 @10:13AM
(#23361309)
Not all scripts needs to be complex, though. There would always be demand for quick and easy scripting languages fit for handling simple cases. Yes, some scripts are bound to grow complex, but that doesn't really justify writing every single script in Python. It's just better to make the switch once the benefits exceed the costs.
Re:Why does OpenBSD still include Perl in its base installat...
by microtherion on Saturday May 30, 2020 @03:16PM
(#23363815)
In principle, I agree, but in practice, I often find that it's common to make the switch too late, so I'm leaning towards making the switch early.
If you want to make a comparison though, I think perl vs sed is a more meaningful one. You can do things that's possible in sed with perl one-liners in a more portable way. It's installed by default on major Linux distributions, and even works on macOS without the GNU vs BSD incompatibilities.