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

CONTENTS

NAME

perl5419delta - what is new for perl v5.41.9

DESCRIPTION

This document describes differences between the 5.41.8 release and the 5.41.9 release.

If you are upgrading from an earlier release such as 5.41.7, first read perl5418delta, which describes differences between 5.41.7 and 5.41.8.

Core Enhancements

Lexical method declaration using my method

Like sub since Perl version 5.18, method can now be prefixed with the my keyword. This declares a subroutine that has lexical, rather than package visibility. See perlclass for more detail.

Lexical method invocation operator ->&

Along with the ability to declare methods lexically, this release also permits invoking a lexical subroutine as if it were a method, bypassing the usual name-based method resolution by name.

Combined with lexical method declaration, these two new abilities create the effect of having private methods.

Incompatible Changes

Switch and Smart Match operator reinstated

The "switch" feature and the smartmatch operator, ~~, were introduced in v5.10. Their behavior was significantly changed in v5.10.1. When the "experiment" system was added in v5.18.0, switch and smartmatch were retroactively declared experimental. Over the years, proposals to fix or supplement the features have come and gone.

They were deprecated in Perl v5.38.0 and scheduled for removal in Perl 5.42.0, and entirely removed in Perl 5.41.3.

After some discussion these have been re-instated.

Using them no longer produces a deprecation warning.

Switch itself still requires the switch feature, which is enabled by default for feature bundles from v5.9.5 through to v5.34. Switch remains disabled in feature bundles 5.35 and later, but can be separately enabled:

# no switch here
use v5.10;
# switch here
use v5.36;
# no switch here
use feature "switch";
# switch here

Smart match now requires the smartmatch feature, which is enabled by default and included in all feature bundles up to 5.40. It is disabled for the 5.41 feature bundle and later, but can be separately enabled:

# smartmatch here
use v5.41;
# no smartmatch here
use feature "smartmatch";
# smartmatch here

[GH #22752]

Performance Enhancements

Modules and Pragmata

Updated Modules and Pragmata

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

Internal Changes

Selected Bug Fixes

Acknowledgements

Perl 5.41.9 represents approximately 5 weeks of development since Perl 5.41.8 and contains approximately 17,000 lines of changes across 380 files from 23 authors.

Excluding auto-generated files, documentation and release tools, there were approximately 9,700 lines of changes to 300 .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.41.9:

Andrew Ruthven, Antanas Vaitkus, Aristotle Pagaltzis, Chris 'BinGOs' Williams, Dan Book, Dan Jacobson, David Mitchell, Eric Herman, hbmaclean, James E Keenan, Karl Williamson, Leon Timmermans, Lukas Mai, Paul Evans, Peter John Acklam, Reini Urban, Richard Leach, Scott Baker, Steve Hay, TAKAI Kousuke, Thibault Duponchelle, 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.