The greybeard reaction to this is to pick a specialty, stack, and domain with less churn than the messier ones. Constantly treading water to stay afloat is exhausting and a waste.
Perl is getting to be like COBOL - lots of lines out there still doing useful things but they aren't cranking out new Perl programmers like they used to. Lucrative if you can find the gig.
That said, I met a millennial COBOL programmer a couple years ago.