Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 2.48 KB

perl.md

File metadata and controls

68 lines (41 loc) · 2.48 KB

Perl

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

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.

Core Reading

Programming Perl

Perl in-place fast file editing (like sed but more powerful)

perl -pi -e 's/OLD/NEW/g' *.txt *.yaml ...

DevOps Perl tools

HariSekhon/DevOps-Perl-tools

Shell scripts with Perl

Shell scripts using Perl and making it easier to install Perl libraries from CPAN.

HariSekhon/DevOps-Bash-tools

Nagios Plugins in Perl

HariSekhon/Nagios-Plugins

Perl Library with Unit Tests

HariSekhon/lib

Partial port from private Knowledge Base page 2009+