I think it depends on what your goals are. There aren't as many applications being developed in Perl as there are in Java, for example. But developers are not the only kind of software engineers. I have been using it for many years to analyze the code the developers create. Perl is absolutely the best tool for analyzing text files like the developers make.
It's been a long time since I wrote any "code." I will probably never write any more "code." But in the mean time, I have written tens of thousands of lines of Perl to analyze the millions of lines of "code" I look at that the developers wrote. And I probably get paid more than most of them.
I am partial to Perl 5, but that is just because it is what I am used to and comfortable with.