The first Perl 5.22 release candidate is out and there are some new operators and many enhancements to regular expressions that look interesting, along with some improvements that don’t require any work from you. Some of the features are experimental, so be careful that you don’t create problems by overusing them until they settle down.
- Perl knows what defined methods a class has and can call them faster
- Create aliases through references on both sides of an assignment or in a control variable.
- The new bitwise feature always uses numeric context
- The double-diamond line-input operator,
<<>>reduces magic gotchas when dealing with
ARGV(files implicitly opened from the command line)
- The list form of a pipe open now works on Windows.
- Hexadecimal floating point values.
closenow puts its error in
$!and warns when an implicit close fails
- The CGI and Module::Build modules are no longer in core Perl. You can still get them on CPAN.
\bboundaries in regexes, including grapheme clusters, Unicode word boundaries, and sentence boundaries.
- The new
/nnon-capturing regular expression flag makes all paren groups non-capturing.
remodule now has a
/xxregex flag (doubled x) is deprecated because it will mean something later.