Not grandparent, but to me, Perl's niche is short log-processing scripts (like, 200 lines or fewer). Once it looks like it will either need an input other than a text file or grow to a significant length, I tend to rewrite in something else.
However, for short log processing scripts, I've not found anything with even close to the same productivity.
However, for short log processing scripts, I've not found anything with even close to the same productivity.