You are viewing the version of this documentation from Perl 5.45.2. This is a development version of Perl.

CONTENTS

NAME

perldelta - what is new for perl v5.45.2

DESCRIPTION

This document describes differences between the 5.45.1 release and the 5.45.2 release.

If you are upgrading from an earlier release such as 5.44.0, first read perl5451delta, which describes differences between 5.44.0 and 5.45.1.

Core Enhancements

Magic v2

This version introduces a whole new set of API functions, data structures, and related items that provides a new kind of variable magic; providing the ability to attach user-supplied trigger functions to behaviours on existing variables.

The eventual intention of this new version is to extend magic with new trigger functions that can apply at different times to those currently supported, and to allow magic to be attached to new kinds of items than are currently permitted. Right now as of this iteration, it does not offer any new abilities but simply changes the shape and structure of existing things to allow space for those extensions to be made at a later date.

For more details, see "Magic v2" in perlguts.

Incompatible Changes

Names derived from class fields skip a leading underscore

If the name of a class field starts with an underscore, any derived constructor parameters (:param) or methods (:reader, :writer) will skip that underscore:

class Foo {
    field $_bar :param :reader :writer;
    # Equivalent to:
    #   field $_bar :param(bar) :reader(bar) :writer(set_bar);
}

This is how Object::Pad works, too.

In previous versions of Perl, the underscore was retained, making the above declaration equivalent to field $_bar :param(_bar) :reader(_bar) :writer(set__bar);.

Performance Enhancements

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:

perlhacktips

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

Configuration and Compilation

Testing

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

Platform Support

Platform-Specific Notes

MacOS (Darwin)

Use of mkostemp(3) enabled on macOS 10.12 Sierra (Darwin 16) and newer, where it is available.

Internal Changes

Selected Bug Fixes

Known Problems

Errata From Previous Releases

Acknowledgements

Perl 5.45.2 represents approximately 4 weeks of development since Perl 5.45.1 and contains approximately 24,000 lines of changes across 320 files from 25 authors.

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

Andreas König, Aristotle Pagaltzis, Bartosz Jarzyna, Craig A. Berry, Dagfinn Ilmari Mannsåker, Daniel Tang, David Mitchell, H.Merijn Brand, James E Keenan, Jan Dubois, Karen Etheridge, Karl Williamson, Leon Timmermans, Lukas Mai, Marc Reisner, Max Maischein, Paul Evans, Philippe Bruhat (BooK), Richard Leach, Sevan Janiyan, Stan Ulbrych, Steve Hay, theoremoon, 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 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.