X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2Fautovivification.pm;h=5e42f1f1719c7fc4cb01198b9639d50194a026aa;hb=b47bb780966680623d37ce471e44f64ae12a5863;hp=5d189a0524e65e13489b7ec460b8b7ef189f1118;hpb=337a1b18d78b1f8abc831159aadb8a0ff42baf68;p=perl%2Fmodules%2Fautovivification.git diff --git a/lib/autovivification.pm b/lib/autovivification.pm index 5d189a0..5e42f1f 100644 --- a/lib/autovivification.pm +++ b/lib/autovivification.pm @@ -85,7 +85,7 @@ C is returned when the expression would have autovivified. C<'store'> -Turn off autovivification for lvalue dereferencing expressions, such as C<< $hashref->{key}[$idx]{$field} = $value >>. +Turn off autovivification for lvalue dereferencing expressions, such as C<< $hashref->{key}[$idx]{$field} = $value >> or C<< for ($hashref->{key}[$idx]{$field}) { ... } >>. An exception is thrown if vivification is needed to store the value, which means that effectively you can only assign to levels that are already defined (in the example, this would require C<< $hashref->{key}[$idx] >> to already be a hash reference). =item *