Perl 5.32.0

A new version of the Perl programming language interpreter 5.32.0 has been released.

Behind 13 months of development, 140 thousand changed lines in 880 files.

Key innovations:

  • A new experimental isa operator that checks whether the specified object is an instance of the passed class or a derived class:

    if( $obj isa Package::Name ) { … }

  • Support Unicode 13.0!
  • It is now possible to write comparison operators with the same precedence as a chain:

    if ( $x < $y <= $z ) {…}

    The same as:

    if ( $x < $y && $y <= $z ) {…}

    You can read more about this feature in perlop (section "Operator Precedence and Associativity").

  • Statement literals in regular expressions are no longer experimental. Example: (*pla:pattern), see perlre for details.
  • The ability to limit the pattern being checked to a specific writing system (more on "Script Runs" in perlre) is no longer experimental.
  • Now you can disable indirect method calls. You can read more in a note by Brian D Foy.

Some optimizations:

  • Checking the connection of additional features (features) is now faster.
  • Significantly speeded up special cases for sorting (talking about {$a <=> $b} and {$b <=> $a} ).

I chose only a few things to my taste. There are other innovations, changes incompatible with previous versions, documentation updates and closed security issues. I suggest that you read the full perldelta at the link.

Source: linux.org.ru

Add a comment