A new version of the Perl programming language interpreter 5.32.0 has been released.
This comes after 13 months of development, with 140,000 modified lines across 880 files.
Key innovations:
- A new experimental operator isa, which checks if the specified object is an instance of the provided class or subclass:
if( $obj isa Package::Name ) { … }
- Support Unicode 13.0!
- It is now possible to chain comparison operators with the same precedence:
if ( $x < $y <= $z ) {…}
The same as:
if ( $x < $y && $y <= $z ) {…}
More details on this feature can be found in perlop (section 'Operator Precedence and Associativity').
- Alphabetical designations of assertions in regular expressions are no longer experimental. Example: (*pla:pattern), see perlre for more details.
- The ability to limit the checked pattern to a specific script system (more on 'Script Runs' in perlre) is no longer experimental.
- There is now the ability to disable indirect method calls. More details can be read in Brian D foy's note.
Some optimizations:
- The check for additional features is now faster.
- Special cases for sorting (specifically {$a $b} and {$b $a}) have been significantly accelerated.
I selected only a few things based on my taste. There are other innovations, incompatibilities with previous versions, documentation updates, and closed security issues. I recommend checking out the full perldelta at the link.
Source: linux.org.ru
