Perl 5.28 Released |
Written by Nikos Vaggalis |
Tuesday, 03 July 2018 |
Perl 5.28 doesn't introduce radical changes, but mainly focuses on optimizations, performance improvements, security fixes, cleanups, module upgrades and removals. We've combined this version's delta document with SawyerX's talk at TPC2018 in Salt Lake City to provide a more holistic summary of noteworthy changes.
Starting up with the new features,Perl 5.28 has been upgraded to support Unicode version 10.0, which now even incorporates the Bitcoin symbol! Delete can now be used on key/value hash slices, returning the keys along with the deleted values. As SawyerX puts it : my %sanitised_values=delete %input_values{@allowed_keys}; Alphabetic synonyms for regular expression assertions For example, positive lookahead is written as but now can be made more readable and even more readable as *script_run makes sure that multiple scripts can't be introduced in the same match, as a mixture of scripts such as Cyrillic and Latin can be the sign of a spoofing attack. qr/(*script_run: \d+ \b )/x ??where the digits matched will all come from the same script. Yada-yada operator ... has now become strictly a statement
Performance improvements and removals
Future removals:
New Warnings Old package separator used in string A scenario under it as SawyerX puts it on his talk is when writing : my $name='Pistachio'; won't do what you expect.Rather Perl interprets the 2nd line as : print "In $name::s house";
CPAN releases And lastly, Subroutine signatures which are surrounded by an unfortunate story, have been changed again. They were first introduced in 5.20, were changed in 5.22, and then it was discovered that :lvalue affects them adversely. Hence in 5.28 they have been changed back to their 5.20 form.
On that matter, a compatibility feature not described in Perl delta but covered in SawyerX's talk is the post526fixsig script with which you can use any version of the Subroutine signatures, or both, regardless of the version of Perl you run . post526sigfix -d --pmc lib/My/Module.pm >lib/My/Module.pmc Options: versions
More Information5.28 Release on MetaCpan Related ArticlesPerl 5.20 And Mojolicious 5.0 Released European Perl Conference In Glasgow, Massive Summer Event Are Perl Programmers Different?
To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on Twitter, Facebook or Linkedin.
Comments
or email your comment to: comments@i-programmer.info |
Last Updated ( Tuesday, 03 July 2018 ) |