|
|
|
|
|
by const_cast
392 days ago
|
|
> but turns out it's a perfect language to rewrite some commandline scripts I had that were getting unwieldy in Bash IMO this is the perfect use case for Perl. I mean, it's why Perl was invented, but to this day it remains incredibly good at doing this specific task. It's incredibly easy to write and can be very easy to read, and it's much more robust than bash. But best of all - and the reason I think Perl still has a place in the modern world - it's available on practically every computer on Earth. And it will all work. It's so backwards-compatible that 25 year old scripts will run just fine. It's so portable that nothing even comes close. Also, it's shockingly fast. Faster than you would think. Regex is really powerful and it's been the template for so many regex implementations, but definitely be careful of runaway time complexity. Anyway, Lua is great too. Really nice for embedding into applications ala VBA. Great for config. |
|