NAME

perl5371delta - what is new for perl v5.37.1

DESCRIPTION

This document describes differences between the 5.37.0 release and the 5.37.1 release.

If you are upgrading from an earlier release such as 5.36.0, first read perl5370delta, which describes differences between 5.36.0 and 5.37.0.

Deprecations

Modules and Pragmata

Updated Modules and Pragmata

  • B has been upgraded from version 1.83 to 1.84.

  • Carp has been upgraded from version 1.52 to 1.53.

  • Data::Dumper has been upgraded from version 2.184 to 2.185.

  • encoding::warnings has been upgraded from version 0.13 to 0.14.

  • ExtUtils::CBuilder has been upgraded from version 0.280236 to 0.280237.

  • ExtUtils::Miniperl has been upgraded from version 1.11 to 1.12.

  • feature has been upgraded from version 1.73 to 1.74.

  • File::Spec has been upgraded from version 3.84 to 3.85.

  • FileHandle has been upgraded from version 2.03 to 2.04.

  • GDBM_File has been upgraded from version 1.23 to 1.24.

    The mmapsize() method now correctly fetches the value.

  • Module::CoreList has been upgraded from version 5.20220527 to 5.20220620.

  • ODBM_File has been upgraded from version 1.17 to 1.18.

  • Opcode has been upgraded from version 1.57 to 1.58.

  • POSIX has been upgraded from version 2.03 to 2.04.

  • SDBM_File has been upgraded from 1.15 to 1.16.

    SDBM_File now supports files over 2GB on Win32. [github #6841]

  • threads has been upgraded from version 2.27 to 2.28.

  • Unicode::Normalize has been upgraded from version 1.31 to 1.32.

  • XS::APItest has been upgraded from version 1.22 to 1.23.

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:

perlapi

perlintern

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

  • A new syntax error has been added for the error that a catch block does not have its required variable declaration. See catch block requires a (VAR)

New Warnings

  • Unknown locale category %d

    This is a shortened form of an already existing diagnostic, for use when there is no new locale being switched to. The previous diagnostic was misleading in such circumstances.

Changes to Existing Diagnostics

  • Removed Complex regular subexpression recursion limit (%d) exceeded

    The regular expresion engine has not used recursion in some time. This warning no longer makes sense.

    See [GH #19636].

Configuration and Compilation

  • make -j6 minitest could fail due to a build conflict in building $(MINIPERL_EXE) between the main make process and a child process. [github #19829]

Testing

Tests were added and changed to reflect the other additions and changes in this release. Furthermore, these significant changes were made:

  • Unicode normalization tests have been added.

Platform Support

Discontinued Platforms

Ultrix

Support code for DEC Ultrix has been removed. Ultrix was the native Unix-like operating system for various Digital Equipment Corporation machines. Its final release was in 1995.

Platform-Specific Notes

Windows

utimes() on Win32 would print a message to stderr if it failed to convert a supplied time_t to to a FILETIME. [github #19668]

Internal Changes

  • get_op_descs, get_op_names, get_opargs, get_no_modify and get_ppaddr have been marked deprecated.

  • hv_free_ent has been marked as internal API.

  • save_pushptr, save_pushptrptr, and save_pushi32ptr have been marked as internal API.

  • New bool related functions and macros have been added to complement the new bool type introduced in 5.36:

    The functions are:

    newSVbool(const bool bool_val)
    newSV_true()
    newSV_false()
    sv_set_true(SV *sv)
    sv_set_false(SV *sv)
    sv_set_bool(SV *sv, const bool bool_val)

    The macros are:

    SvIandPOK(sv)
    SvIandPOK_off(sv)
    SvIandPOK_on
  • Perl is no longer manipulating the environ array directly. The variable PL_use_safe_putenv has been removed and PERL_USE_SAFE_PUTENV is always defined. This means XS modules can now call setenv and putenv without causing segfaults. [perl #19399]

  • Internal C API functions are now hidden with __attribute__((hidden)) on the platforms that support it. This means they are no longer callable from XS modules on those platforms.

    It should be noted that those functions have always been hidden on Windows. This change merely brings that to the other platforms. [perl #19655]

Selected Bug Fixes

  • Avoid recursion and stack overflow parsing 'pack' template

    [GH #16319]

  • An eval() as the last statement in a regex code block could trigger an interpreter panic; e.g.

    /(?{ ...; eval {....}; })/

    [GH #19680]

Acknowledgements

Perl 5.37.1 represents approximately 3 weeks of development since Perl 5.37.0 and contains approximately 75,000 lines of changes across 240 files from 28 authors.

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

Brian Greenfield, Chris 'BinGOs' Williams, Clemens Wasser, Dan Book, David Mitchell, Ed Sabol, Elvin Aslanov, Graham Knop, Hugo van der Sanden, James E Keenan, jkahrman, Karl Williamson, Leon Timmermans, Mark Jason Dominus, Matthew Horsfall, Mohammad S Anwar, Neil Bowers, Nicholas Clark, Nicolas Mendoza, Nicolas R, Paul Evans, Ricardo Signes, Richard Leach, Sidney Markowitz, Sisyphus, Tomasz Konojacki, Tony Cook, Yves Orton.

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.