X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2Fautovivification.pm;h=ac9bd98f0231308244a657d081563fcb0838bc45;hb=66a75622a9e10465ef5117c5c68a78e493406234;hp=825eb9976dceefb7d1cff06d9b101fc3b1091e22;hpb=7b43fe3caca2977c57aea3f812131d16378cab46;p=perl%2Fmodules%2Fautovivification.git diff --git a/lib/autovivification.pm b/lib/autovivification.pm index 825eb99..ac9bd98 100644 --- a/lib/autovivification.pm +++ b/lib/autovivification.pm @@ -64,8 +64,8 @@ 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 is returned when the expression would have autovivified. +Turn off autovivification for rvalue dereferencing expressions, such as C<< $value = $hashref->{key}[$idx]{$field} >>, C<< keys %{$hashref->{key}} >> or C<< values %{$hashref->{key}} >>. +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 *