X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Fautovivification.git;a=blobdiff_plain;f=README;h=22adc68d4cc7432abfffecac801aea6e2e3158ca;hp=8ae2572aa4baf307bae1b6fa429ccb827d94d278;hb=HEAD;hpb=f43bcb48f22a850a45bf01e5fdcdddbbfcb9dffa diff --git a/README b/README index 8ae2572..22adc68 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME autovivification - Lexically disable autovivification. VERSION - Version 0.17 + Version 0.18 SYNOPSIS no autovivification; @@ -36,8 +36,8 @@ METHODS "unimport" no autovivification; # defaults to qw no autovivification qw; - no autovivification 'warn'; - no autovivification 'strict'; + no autovivification warn => @categories; + no autovivification strict => @categories; Magically called when "no autovivification @opts" is encountered. Enables the features given in @opts, which can be : @@ -101,11 +101,21 @@ METHODS * 'warn' - Emits a warning when an autovivification is avoided. + Emits a warning when an autovivification is avoided for the + categories specified in @opts. + + Note that "no autovivification 'warn'" currently does nothing by + itself, in particular it does not make the default categories warn. + This behaviour may change in a future version of this pragma. * 'strict' - Throws an exception when an autovivification is avoided. + Throws an exception when an autovivification is avoided for the + categories specified in @opts. + + Note that "no autovivification 'strict'" currently does nothing by + itself, in particular it does not make the default categories die. + This behaviour may change in a future version of this pragma. Each call to "unimport" adds the specified features to the ones already in use in the current lexical scope.