in reply to why text processing is fast in perl

I'm not sure it's concerning the speed as much as it's concerning the ease.

In perl, regular expressions are given special importance that make it natural to work with patterns without having to do a lot of extra work.

UPDATE: indeed, the sed-in-place perl -i -pe 's/word/lol/' is just about the coolest thing of all.

-Paul

Replies are listed 'Best First'.
Re^2: why text processing is fast in perl
by ikegami (Patriarch) on Jun 20, 2007 at 14:14 UTC
    There are also useful command line options (-p, -n, -i) and reading a file line by line is easy (while (<FILE>)). There's also support to read either from STDIN or from a file specified on the command line (while (<>)) which is great for text processing tools.