X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2Fautovivification.pm;h=2a30853f23445d243a48606457d961f6678d785c;hb=1740addb4cafa0e3bde5f257fd8d6ce00dfde2c3;hp=4f4f98b8581691e2280cace1c0e87ab275450adf;hpb=6b897414257c5dc3056ed7b36b8e47b54dff5d41;p=perl%2Fmodules%2Fautovivification.git diff --git a/lib/autovivification.pm b/lib/autovivification.pm index 4f4f98b..2a30853 100644 --- a/lib/autovivification.pm +++ b/lib/autovivification.pm @@ -1,6 +1,6 @@ package autovivification; -use 5.008001; +use 5.008003; use strict; use warnings; @@ -11,13 +11,13 @@ autovivification - Lexically disable autovivification. =head1 VERSION -Version 0.06 +Version 0.08 =cut our $VERSION; BEGIN { - $VERSION = '0.06'; + $VERSION = '0.08'; } =head1 SYNOPSIS @@ -132,7 +132,7 @@ Throws an exception when an autovivification is avoided. Each call to C adds the specified features to the ones already in use in the current lexical scope. -When C<@opts> is empty, it defaults to C. +When C<@opts> is empty, it defaults to C<< qw >>. =cut @@ -148,7 +148,7 @@ my %bits = ( sub unimport { shift; my $hint = _detag($^H{+(__PACKAGE__)}) || 0; - @_ = qw/fetch exists delete/ unless @_; + @_ = qw unless @_; $hint |= $bits{$_} for grep exists $bits{$_}, @_; $^H |= 0x00020000; $^H{+(__PACKAGE__)} = _tag($hint); @@ -198,7 +198,10 @@ If warnings are turned on, Perl will complain about one-element slices. =head1 DEPENDENCIES -L 5.8.1. +L 5.8.3. + +A C compiler. +This module may happen to build with a C++ compiler as well, but don't rely on it, as no guarantee is made in this regard. L (standard since perl 5.006). @@ -231,7 +234,7 @@ Matt S. Trout asked for it. =head1 COPYRIGHT & LICENSE -Copyright 2009,2010 Vincent Pit, all rights reserved. +Copyright 2009,2010,2011 Vincent Pit, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.