I'd say the two biggest developments in the language are named parameters on subs, and native try/catch. Or, perhaps, those were the two most deficient absent features in early perl which perl now has. Perl gives you access to the new features various ways, but the best is use v5.40; which gives you a feature-bundle of everything considered stable and not-deprecated as of version 5.40. This includes strict and warnings, so less boilerplate at the top of your scripts.
use v5.40; # strict, warnings, many features use Moo; # lightweight object system use Log::Any '$log'; # my favorite logging system has field1 => ( is => 'rw', required => 1 ); sub method1($self, $z=undef) { try { $self->field1($z) if defined $z; $self->field2($z // 5); } catch ($e) { say $e; $log->error($e); } }

I don't mean to speak ill of the new in-core object system, but if you give it a try you can decide for yourself whether it meets your needs better than Moo.

Oh, and one of my favorites are indented here-docs:

sub foo { my $x= <<~END <-This is the start of the line END }
And for a brief overview of the CPAN landscape, Of course, CPAN is almost infinite, but these are just the ones that I use on a regular basis, and some of their competitors that I know other people like.

In reply to Re: Returning to Perl after almost 3 decades by NERDVANA
in thread Returning to Perl after almost 3 decades by DaWolf

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.