Perl is a legend of programming languages.
Easily one of the fastest easiest most powerful imperative scripting languages, and legendary for text processing and regular expressions.
It's the language of elite unix sysadmins, and much of unix tooling is built on it, including Git.
- PCRE - Perl Compatible Regular Expressions
- Core Reading
- Perl in-place fast file editing (like sed but more powerful)
- DevOps Perl tools
- Shell scripts with Perl
- Nagios Plugins in Perl
- Perl Library with Unit Tests
PCRE has the gold standard of regex for decades and is the standard by which other languages are judged.
It's regex engine is faster and more advanced than Python's. You can see many examples where both are used in the following GitHub repos:
Bash / Grep style BRE / ERE - basic regular expressions / extended regular expressions are the poor man's version, and awkward for serious usage. Still, you can see many examples of Bash / Grep BRE/ERE format regex usage in:
Even if you don't know Perl programming you should at least in-place editing of files as it's even more powerful than sed
.
perl -pi -e 's/OLD/NEW/g' *.txt *.yaml ...
Shell scripts using Perl and making it easier to install Perl libraries from CPAN.
Partial port from private Knowledge Base page 2009+