perl
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
pod/perl5340delta.pod view on Meta::CPAN
=encoding utf8
=head1 NAME
perl5340delta - what is new for perl v5.34.0
=head1 DESCRIPTION
This document describes differences between the 5.32.0 release and the 5.34.0
release.
If you are upgrading from an earlier release such as 5.30.0, first read
L<perl5320delta>, which describes differences between 5.30.0 and 5.32.0.
=head1 Core Enhancements
=head2 Experimental Try/Catch Syntax
An initial experimental attempt at providing C<try>/C<catch> notation has
been added.
use feature 'try';
try {
a_function();
}
catch ($e) {
warn "An error occurred: $e";
}
For more information, see L<perlsyn/"Try Catch Exception Handling">.
=head2 C<qr/{,n}/> is now accepted
An empty lower bound is now accepted for regular expression quantifiers,
like C<m/x{,3}/> meaning C<m/x{0,3}/>
=cut
=head2 Blanks freely allowed within but adjacent to curly braces
(in double-quotish contexts and regular expression patterns)
This means you can write things like S<C<\x{ FFFC }>> if you like. This
applies to all such constructs, namely C<\b{}>, C<\g{}>, C<\k{}>,
C<\N{}>, C<\o{}>, and C<\x{}>; as well as the regular expression
quantifier C<{I<m>,I<n>}>. C<\p{}> and C<\P{}> retain their
already-existing, even looser, rules mandated by the Unicode standard
(see L<perluniprops/Properties accessible through \p{} and \P{}>).
This ability is in effect regardless of the presence of the C</x>
regular expression pattern modifier.
Additionally, the comma in a regular expression braced quantifier may
have blanks (tabs or spaces) before and/or after the comma, like
S<C<qr/a{ 5, 7 }/>>.
=head2 New octal syntax C<0oI<ddddd>>
It is now possible to specify octal literals with C<0o> prefixes,
as in C<0o123_456>, parallel to the existing construct to specify
hexadecimal literal C<0xI<ddddd>> and binary literal C<0bI<ddddd>>.
Also, the builtin C<oct()> function now accepts this new syntax.
See L<perldata/Scalar value constructors> and L<perlfunc/oct EXPR>.
=head1 Performance Enhancements
=over 4
=item *
Fix a memory leak in RegEx
[L<GH #18604|https://github.com/Perl/perl5/issues/18604>]
=back
=head1 Modules and Pragmata
=head2 New Modules and Pragmata
=over 4
=item *
L<ExtUtils::PL2Bat> 0.004 has been added to the Perl core.
This module is a generalization of the C<pl2bat> script. It being a script has
led to at least two forks of this code; this module will unify them under one
implementation with tests.
=back
=head2 Updated Modules and Pragmata
=over 4
=item *
L<Archive::Tar> has been upgraded from version 2.36 to 2.38.
=item *
L<autodie> has been upgraded from version 2.32 to 2.34.
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.508 second using v1.00-cache-2.02-grep-82fe00e-cpan-1925d2aa809 )