NAME
perldelta - what is new for perl v5.35.8
DESCRIPTION
This document describes differences between the 5.35.7 release and the 5.35.8 release.
If you are upgrading from an earlier release such as 5.35.6, first read perl5357delta, which describes differences between 5.35.6 and 5.35.7.
Core Enhancements
Try/Catch Syntax Now Recognises finally
Blocks
The experimental try
/catch
syntax has been extended to support an optional third block introduced by the finally
keyword.
try {
attempt();
print "Success\n";
}
catch ($e) {
print "Failure\n";
}
finally {
print "This happens regardless\n";
}
This provides code which runs at the end of the try
/catch
construct, even if aborted by an exception or control-flow keyword. They are similar to defer
blocks.
For more information, see "Try Catch Exception Handling" in perlsyn.
Incompatible Changes
A physically empty sort is now a compile-time error
@a = sort @empty; # unaffected
@a = sort; # now a compile-time error
A bare sort used to be a weird way to create an empty list; now it croaks at compile time. This is change is intended to free up some of the syntax space for possible future enhancements to sort
.
Performance Enhancements
Try / Catch optimization: make sure to rpeep() the body of catch {} blocks
Modules and Pragmata
Updated Modules and Pragmata
Module::CoreList has been upgraded from version 5.20211220 to 5.20220120.
bignum has been upgraded from version 0.63 to 0.64.
Data::Dumper has been upgraded from version 2.183 to 2.184.
Fixes for EBCDIC.
File::Fetch has been upgraded from version 1.00 to 1.04.
File::Find has been upgraded from version 1.39_01 to 1.40.
Replace bareword filehandle with a lexical scalar.
Locale::Maketext has been upgraded from version 1.29 to 1.30.
Provide inclusive names allowlist and denylist
Math::BigInt has been upgraded from version 1.999828 to 1.999829.
NEXT has been upgraded from version 0.68 to 0.69.
POSIX has been upgraded from version 2.02 to 2.03.
FLT_ROUNDS now emulates (more) standard behavior that reflects the current rounding mode set by fesetround.
Win32 has been upgraded from version 0.57 to 0.58.
Documentation
Changes to Existing Documentation
We have attempted to update the documentation to reflect the changes listed in this document. If you find any we have missed, open an issue at https://github.com/Perl/perl5/issues.
Additionally, the following selected changes have been made:
perlrun
-? is now a synonym for -h
Testing
Tests were added and changed to reflect the other additions and changes in this release.
Tests were added and changed to reflect the other additions and changes in this release. Furthermore, these significant changes were made:
ExtUtils-ParseXS test suite improvement
Hash::Util::FieldHash test suite improvement
Pod::Html test suite improvement
Tie::SubstrHash test suite improvement
Time-HiRes test suite improvement
Fix several test failures on CygWin and MSWin32.
Platform Support
Platform-Specific Notes
- z/OS
-
Update z/OS (previously called OS/390) README to describe ASCII and EBCDIC builds z/OS ASCII Enablement: Manage untagged header errno.h by copy & tag
- Windows
-
Support for compiling perl on Windows using Microsoft Visual Studio 2022 (containing Visual C++ 14.3) has been added.
Internal Changes
Add missing aliases for \p{Present_In}
Change
pack
U behavior for EBCDICsv_upgrade: use c99 compound literals to initialize xpvav/xpvhv
Acknowledgements
Perl 5.35.8 represents approximately 4 weeks of development since Perl 5.35.7 and contains approximately 29,000 lines of changes across 190 files from 19 authors.
Excluding auto-generated files, documentation and release tools, there were approximately 23,000 lines of changes to 120 .pm, .t, .c and .h files.
Perl continues to flourish into its fourth decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl 5.35.8:
Chris 'BinGOs' Williams, Craig A. Berry, David Mitchell, E. Choroba, François Perrad, Graham Knop, Ivan Panchenko, James E Keenan, Karl Williamson, Michiel Beijen, Mike Fulton, Neil Bowers, Nicholas Clark, Nicolas R., Paul Evans, Richard Leach, Sawyer X, TAKAI Kousuke, Tomasz Konojacki.
The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.
Many of the changes included in this version originated in the CPAN modules included in Perl's core. We're grateful to the entire CPAN community for helping Perl to flourish.
For a more complete list of all of Perl's historical contributors, please see the AUTHORS file in the Perl source distribution.
Reporting Bugs
If you find what you think is a bug, you might check the perl bug database at https://github.com/Perl/perl5/issues. There may also be information at http://www.perl.org/, the Perl Home Page.
If you believe you have an unreported bug, please open an issue at https://github.com/Perl/perl5/issues. Be sure to trim your bug down to a tiny but sufficient test case.
If the bug you are reporting has security implications which make it inappropriate to send to a public issue tracker, then see "SECURITY VULNERABILITY CONTACT INFORMATION" in perlsec for details of how to report the issue.
Give Thanks
If you wish to thank the Perl 5 Porters for the work we had done in Perl 5, you can do so by running the perlthanks
program:
perlthanks
This will send an email to the Perl 5 Porters list with your show of thanks.
SEE ALSO
The Changes file for an explanation of how to view exhaustive details on what changed.
The INSTALL file for how to build Perl.
The README file for general stuff.
The Artistic and Copying files for copyright information.