Re:Perl One-Liners Cookbook
by ur-whale on Sunday November 08, 2020 @01:02AM
(#25023455)
Yes, absolutely, perl is part of my standard toolbox for some specific tasks, and I'd say I use it at least once a week.
For example, for short scripts to process/massage data - either one shot or in a production pipeline -, it's very expressive and "to the point", especially if you're going to use regexps.
perl is in particular way less verbose than e.g. python when it comes to regexes coz regexes are built into the basic syntax of the language.
OTOH, there are many, many things that are broken in perl, but if I had to cite two things that made me kind of give up on it for new large and mid-level complexity projects these would be:
- near impossible to predict perl's handling of "numerical" values
- having to type dollar signs to dereference variables
For example, for short scripts to process/massage data - either one shot or in a production pipeline -, it's very expressive and "to the point", especially if you're going to use regexps.
perl is in particular way less verbose than e.g. python when it comes to regexes coz regexes are built into the basic syntax of the language.
OTOH, there are many, many things that are broken in perl, but if I had to cite two things that made me kind of give up on it for new large and mid-level complexity projects these would be: - near impossible to predict perl's handling of "numerical" values - having to type dollar signs to dereference variables