🔤Perl
Also known as Perl Language, Perl Script, Perl 5
A script language known for finding and changing text fast.
Think of it like
It is like a pocket knife for text. It can cut, find and swap words in any file.
Example
An admin uses one line of Perl to find errors. It prints each line of a log that says error.
Why it matters
Lots of old servers and tools still run Perl. Its one-liners still solve text jobs in seconds.
Definition
Example code
console
$ perl -ne 'print if /error/' app.logCommon mistake
Key takeaways
- 1Text first. Made for searching text.
- 2Regex built in. Patterns are part of the language.
- 3One-liners. Small jobs from the prompt.