X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2Fautovivification.pm;h=1bab02f6466839d44978531853d89c1c348125e6;hb=c79d4e423275faf328a1cdb9e47fdd1ba432388d;hp=bff3f85855b87d410fec9a338fd07955d6e358b6;hpb=3d65456241cf253443837fd0d69a8ddb753ae49a;p=perl%2Fmodules%2Fautovivification.git diff --git a/lib/autovivification.pm b/lib/autovivification.pm index bff3f85..1bab02f 100644 --- a/lib/autovivification.pm +++ b/lib/autovivification.pm @@ -65,6 +65,7 @@ Enables the features given in C<@opts>, which can be : C<'fetch'> Turn off autovivification for rvalue dereferencing expressions, such as C<< $value = $hashref->{key}[$idx]{$field} >>, C<< keys %{$hashref->{key}} >> or C<< values %{$hashref->{key}} >>. +Starting from perl C<5.11>, it also covers C and C on array references. When the expression would have autovivified, C is returned for a plain fetch, while C and C return C<0> in scalar context and the empty list in list context. =item *