Perl 5 is a great language far ahead of it's time, it's extremely functional, and it still underpins many large and important systems to this day. No, it's not perfect, but it's the first time programming where I ever felt like I was having fun writing the code as opposed to achieving a means to an end.
I admittedly have no experience with Perl 7 and didn't like Raku. Sometimes worse is better.
Perl does not scale. Very few people want to maintain Perl code. The write only reputation is not without merit.
This is a very ignorant take that selectively chooses to look at the fact that you can write Perl poorly, because the language does not stop you from doing so, and ignores the fact that you can also write it in a maintainable fashion.
People stopped working on Perl for a variety of reasons. The commitment to backwards compatibility to a fault. The reputation leading to lower adoption. And so on. None of these are structural problems with the language itself, they are more community/bad luck issues.
As history has shown, this didn't work out well for anyone