Question: is perl faster than python?
Answer: Originally, it took 10.2 seconds using Python and only 1.9 secs using Perl for this simple text processing. (UPDATE) but, after the compiled re version of Python, it now takes 8.2 seconds in Python and 1.5 seconds in Perl. Still Perl is much faster.