],
modules => [
[bignum => 'transparent big number support', 'length 1e100 == 101'],
- [if => 'conditional module inclusion', 'no if $] >= 5.022, "warnings", "redundant"'],
+ [if => 'conditional module inclusion', 'no if $] >= 5.022, "warnings", "redundant"'],
[sort => 'override sort() algorithm', {dropped => v5.28, eg => 'sort::current eq "stable"'}],
[Digest => 'calculate various message digests (data hashes)', '$hash = sha256_hex($data)'],
[Encode => 'character set conversion', 'encode("utf8", decode("iso-8859-1", $octets))'],
['Memoize' => 'remember function results, trading space for time', 'memoize "stat"'],
['MIME::Base64' => 'base64 encoded strings as in email attachments'],
['Test::More' => 'modern framework for unit testing', 'is $got, $expected'],
- ['Time::HiRes' => 'high resolution timers', '$μs = [gettimeofday]; sleep .1;'.$wbr.' $elapsed = tv_interval $μs'],
+ ['Time::HiRes' => 'high resolution timers', '$μs = [gettimeofday]; sleep .1;'.$wbr.' $elapsed = tv_interval $μs'],
],
release => '2002-07-18',
distro => {
['<code>state</code>', 'persistent <code>my</code> variables (scalars only until <a href="#state_ext">5.28</a>)', {feature => 'state'}],
],
modules => [
- [autodie => 'replace builtin functions to throw exceptions instead of returning failure', 'eval {open ...} or $@->matches("open") || die'],
+ [autodie => 'replace builtin functions to throw exceptions instead of returning failure', 'eval {open ...} or $@->matches("open") || die'],
# overloading
- ['IO::Compress::Zip' => 'various file compression standards', 'zip IO::Uncompress::Gunzip->new("test.gz")'.$wbr.' => "recompressed.zip"'],
+ ['IO::Compress::Zip' => 'various file compression standards', 'zip IO::Uncompress::Gunzip'.$wbr.'->new("test.gz")'.$wbr.' => "recompressed.zip"'],
['Time::Piece' => 'timestamps as objects', 'localtime->year > 1900'],
['File::Fetch' => 'generic data retrieval/download', 'File::Fetch->new(uri => "http://localhost/")'.$wbr.'->fetch(to => \$slurp)'],
],
v5.32 => {
new => [
['<code>isa</code>', 'infix operator to check class instance', {feature => 'isa', experimental => 'isa', stable => v5.36}],
- ['<code>$min < $_ <= $max</code>', 'chained comparison repeats inner part as <code>$min < $_ and $_ <= $max</code>'],
+ ['<code>$min < $_ <= $max</code>', 'chained comparison repeats inner part as <code>$min < $_ and $_ <= $max</code>'],
['<code>/\p{Name=$var}/</code>', 'match Unicode Name property like <code>\N{}</code> but with interpolation and subpatterns'],
[q"<code>open F, '+>>', undef</code>", 'respect append mode on temporary files with mixed access'],
["<code>no feature 'indirect'</code>", 'disable indirect object notation such as <code>new Class</code> instead of <code>Class->new</code>'],
['<code>/{,<i>n</i>}/</code>', 'empty lower bound quantifier is accepted as shorthand for 0'],
['<code>\x{ … }</code>', 'insignificant space within curly braces, also for <code>\b{}</code>, <code>\g{}</code>, <code>\k{}</code>, <code>\N{}</code>, <code>\o{}</code> as well as <code>/{m,n}/</code> quantifiers'],
['<code>0o0</code>', 'octal prefix <code>0o</code> alternative to <code>0…</code> and <code>oct</code>'],
- ['<code>re::optimization(qr//)</code>', 'debug regular expression optimization information discovered at compile time'],
+ ["<code>re::optimization(${wbr}qr//)</code>", 'debug regular expression optimization information discovered at compile time'],
['<code>no feature …</code>', 'disable discouraged practices of <code>bareword_filehandles</code> and <code>multidimensional</code> array emulation'],
],
release => '2021-05-20',
new => [
['<code>use feature "module_true"</code>', 'default in use 5.37 and up, also <code>no feature "bareword_filehandles"</code>'],
['<code>sub ($var ||=</code> default<code>)</code>', 'assign values when false (or undefined on <code>//=</code>) instead of omitted'],
- ['<code>/(*{ … })/</code>', 'optimistic eval: <code>(?{ … })</code> with regex optimisations enabled'],
+ ['<code>/(*{ … })/</code>', 'optimistic eval: <code>(?{ … })</code> with regex optimisations enabled'],
['<code>class</code>', "define object classes: packages with <code>field</code> variables and <code>method</code> subroutines", {feature => 'class', experimental => 'class'}],
['<code>${^LAST_<wbr>SUCCESSFUL_<wbr>PATTERN}</code>', 'explicit variable to access the previous match as in <code>s//…/</code>'],
['<code>%{^HOOK}</code>', "perform tasks <code>require__before</code> and <code>require__after</code> when calling <code>require</code>"], # also @INC hook enhancements