by kagevf · 3y ago · 0 comments
Edit: one plus is that perl is as ubiquitous as awk and sed. It was there the whole time and I didn’t even realize it!
Perl gives you all the simple features from sed or AWK and adds useful (maintainable) foreach iterators, arrays, hashes, etc.
Recommend using Strict mode if you are new to Perl. It gives good guardrails against silly mistakes like not declaring or misspelling a variables, or accessing strings or numbers that aren’t the correct datatype.
Customary Generic Meaning Interpolates
'' q{} Literal no
"" qq{} Literal yes
--where {} can be any bracket pair.
my $string1 = q<a single quote '>;
my $string2 = qq<a double quote ">;This was a major reason I downloaded Perl 1.0 off Usenet in 1987.[1]