3 ms·
I still use Perl for occasional one-liners in pipelines as well (where it's simply more expressive than sed or awk), but I've given up on it for scripting in fa
by senderista 6y ago
I still use Perl for occasional one-liners in pipelines as well (where it's simply more expressive than sed or awk), but I've given up on it for scripting in favor of (first) Ruby and (later) Python. About a decade ago, though (long after I'd switched to Python), I found that a regex-heavy program I'd written for processing terabytes of JSON files ran several times faster in Perl than in Python. I wonder if Perl still has a noticeable edge in text processing speed?
- cutler 6y agoA Perl regex is certainly more performant than the Python equivalent however I was surprised to find one of PHP's .ini options enables regex performance which surpasses even Perl's.