]> git.vpit.fr Git - perl/modules/autovivification.git/blobdiff - lib/autovivification.pm
Make sure the POD headings are linkable
[perl/modules/autovivification.git] / lib / autovivification.pm
index 2890cace2f79a6b81c1f20d82d98bcf69b783f8c..7f6adc5a0b5a4773d820c119dc6e89e9504f41f3 100644 (file)
@@ -11,13 +11,13 @@ autovivification - Lexically disable autovivification.
 
 =head1 VERSION
 
-Version 0.09
+Version 0.10
 
 =cut
 
 our $VERSION;
 BEGIN {
- $VERSION = '0.09';
+ $VERSION = '0.10';
 }
 
 =head1 SYNOPSIS
@@ -53,7 +53,12 @@ BEGIN {
 
 =head1 METHODS
 
-=head2 C<unimport @opts>
+=head2 C<unimport>
+
+    no autovivification; # defaults to qw<fetch exists delete>
+    no autovivification qw<fetch store exists delete>;
+    no autovivification 'warn';
+    no autovivification 'strict';
 
 Magically called when C<no autovivification @opts> is encountered.
 Enables the features given in C<@opts>, which can be :
@@ -113,7 +118,7 @@ Turns off autovivification for lvalue dereferencing expressions, such as :
     function($arrayref->[$idx])
     function($hashref->{$key})
 
-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
+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<$arrayref> (resp. C<$hashref>) to already be an array (resp. hash) reference.
 
 =item *
@@ -155,7 +160,10 @@ sub unimport {
  ();
 }
 
-=head2 C<import @opts>
+=head2 C<import>
+
+    use autovivification; # default Perl behaviour
+    use autovivification qw<fetch store exists delete>;
 
 Magically called when C<use autovivification @opts> is encountered.
 Disables the features given in C<@opts>, which can be the same as for L</unimport>.
@@ -188,7 +196,7 @@ This constant only has a meaning with your perl is threaded ; otherwise, it'll a
 =head2 C<A_FORKSAFE>
 
 True iff this module could have been built with fork-safety features enabled.
-This will always be true except on Windows where it's false for perl 5.10.0 and below .
+This will always be true except on Windows where it's false for perl 5.10.0 and below.
 
 =head1 CAVEATS