I think that Perl also started losing out due to lacks of basic welcoming and civility.
In the late 90s I worked in a Perl-only shop. Exciting times. Perl 5 had just come out, and Perl skills were in rising demand. People were helpful to each other.
All I got was snark, insults, and several "clever" answers that, while factually correct, were intentionally useless.
"Screw this," I thought. "It's time to learn Python."
Personal mastodon instance of Mark Atwood