4 ms·
OP you should mention perl one-liners in upcoming chapters https://catonmat.net/introduction-to-perl-one-liners https://catonmat.net/introduction-to-perl-one-li
by latenightcoding 7y ago
OP you should mention perl one-liners in upcoming chapters
https://catonmat.net/introduction-to-perl-one-liners https://catonmat.net/introduction-to-perl-one-liners
- thesuperbigfrog 7y agoAgreed. Perl makes it easy to do complex text processing and can replace many individual command line text processing tools. Recent versions of Perl also support UTF-8 so they can support text processing in different natural languages or internationalization needs. See https://en.wikibooks.org/wiki/Perl_Programming/Unicode_UTF-8 https://en.wikibooks.org/wiki/Perl_Programming/Unicode_UTF-8
- bmn__ 7y ago> Recent versions of Perl Make sure it's recent enough and released after 2002!
- thesuperbigfrog 7y agoI was thinking of Perl versions 5.14 (released in 2011) and later since that release fixed several Unicode-related bugs. There have been other improvements and fixes in the versions up to 5.30, so the Unicode support now is pretty transparent. Many of the classic command line text processing tools are not Unicode aware.
- superasn 7y agoTotally agree. I always use Perl instead of sed because sed doesn't support PCRE and it's far easier to write something like '\d+' instead of [:digit:] or whatever the sed equivalents are.