I think Perl was fighting on too many fronts at the turn of the century: web, systems automation, data processing, science and a few more. Today these areas are better covered by other languages that have hefty internet buzz and corporate support behind. Perl also has no shiny features. It's just extremely dynamic and paradigm agnostic, great at shell interactions and natural at text processing (specially with regexe…
doesn't this apply to python, although now there are additional competitors?
> reinvented itself as a web language (Mojolicious, Plack).
highly opinionated and potentially flame creating , but -
perl was the original web language in the CGI era, PHP pretty much dethroned it due to simplicity of server integration, rails knocked them both out of 'leading edge', then the Node/SPA era arrived.
mojolicious / plack are pretty much things to bring perl up to date w/r/t the 'rails' type