I would say it’s only worth learning Perl 5 if you work in a shop that has a lot of old Perl code, otherwise Python is probably the most sensible option to learn (as much as it pains me to say) if you haven’t got a job yet. It will also help you with tools like ansible.
Go might also have a future where Perl once thrived since you can compile your dependencies into the program. Dependencies sort of sucks with all scripting languages.