NAME

perl5436delta - what is new for perl v5.43.6

DESCRIPTION

This document describes differences between the 5.43.5 release and the 5.43.6 release.

If you are upgrading from an earlier release such as 5.43.4, first read perl5435delta, which describes differences between 5.43.4 and 5.43.5.

Deprecations

  • Using goto to jump into the body of a loop or other block construct from outside is no longer permitted. [GH #23618]

Modules and Pragmata

Updated Modules and Pragmata

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:

perlxs

  • The reference manual for writing Perl XS code has been completely rewritten and modernized. It is about twice the size of the old file, and promotes more modern XS syntax, such as ANSI signatures.

Diagnostics

The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see perldiag.

New Diagnostics

New Errors

Changes to Existing Diagnostics

  • The error Unrecognised parameters for "%s" constructor: %s has been changed to Unrecognized parameters for "%s" constructor: %s.

  • The deprecation warning Attempt to call undefined %s method with arguments ("%s"%s) via package "%s" (Perhaps you forgot to load the package?) has been changed to Attempt to call undefined %s method with arguments via package "%s" (Perhaps you forgot to load the package?) and is now a fatal error.

Testing

Tests were added and changed to reflect the other additions and changes in this release.

Platform Support

Platform-Specific Notes

Windows

A compilation error in unthreaded builds using MSVC introduced in Perl 5.43.5 has been fixed. [GH #23952]

Internal Changes

  • Perl_sv_backoff, which undoes the OOK string offset mechanism now only moves the string buffer contents to the start of the buffer if `SvOK(sv)` is true. Historically, the buffer contents were always moved, but if the buffer contents are defunct and no longer required, doing that incurs an unnecessary cost proportional to the size of the shifted contents.

    (The assumption in this change is that `SvOK(sv)` is a valid indicator of whether the string buffer contents are "live" or not.)

    See [GH #23967] for an example of where such a copy was noticeable.

  • The XS parser, ExtUtils::ParseXS, has been further extensively restructured internally. Most of these changes shouldn't be visible externally, but might affect XS code which was using invalid or unsupported syntax. Several minor bug-fixes were included.

Selected Bug Fixes

  • Regexes which include both a sub-pattern (e.g. (??{...}) or (?&FOO)) and a cut (i.e. (?>...)) could sometimes cause a premature scope exit in other code during a match. For example, in something like (?{ local $x = ... }), the local might have been unwound before the pattern has finished matching. [GH #16197]

  • DB::sub is not meant to be called for sub calls from the DB package, but called to overloaded subs for overloaded values used in the DB package would result in calls in DB::sub. Fixed the check for the current package in amagic_call(). [GH #24001]

  • pregexec() handles zero-length strings again, fixing an assert failure in Package-Stash-XS (which Moose depends upon). This had been broken in Perl 5.43.4. [GH #23903]

Acknowledgements

Perl 5.43.6 represents approximately 4 weeks of development since Perl 5.43.5 and contains approximately 25,000 lines of changes across 330 files from 17 authors.

Excluding auto-generated files, documentation and release tools, there were approximately 11,000 lines of changes to 280 .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.43.6:

Bartosz Jarzyna, Chad Granum, Chris 'BinGOs' Williams, Dan Book, David Mitchell, Eric Herman, James E Keenan, James Raspass, Karl Williamson, Max Maischein, Paul Evans, Philippe Bruhat (BooK), Richard Leach, Steve Hay, TAKAI Kousuke, Thibault Duponchelle, Tony Cook.

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 https://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.