]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - lib/Variable/Magic.pm
Importing Variable-Magic-0.07_02.tar.gz
[perl/modules/Variable-Magic.git] / lib / Variable / Magic.pm
index f60564917e14c139d3bfd9a8ae0d925d7b5c2b59..11a26a8511362af310831fe5f72ec10008860e3e 100644 (file)
@@ -13,14 +13,14 @@ Variable::Magic - Associate user-defined magic to variables from Perl.
 
 =head1 VERSION
 
-Version 0.07_01
+Version 0.07_02
 
 =cut
 
 use vars qw/$VERSION/;
 
 BEGIN {
- $VERSION = '0.07_01';
+ $VERSION = '0.07_02';
 }
 
 =head1 SYNOPSIS
@@ -155,12 +155,7 @@ sub wizard {
  croak 'Wrong number of arguments for wizard()' if @_ % 2;
  my %opts = @_;
  my $sig = $opts{sig};
- my @types = qw/data get set len clear free/;
- push @types, 'copy'  if MGf_COPY;
- push @types, 'dup'   if MGf_DUP;
- delete $opts{dup}; # don't use it for now
- push @types, 'local' if MGf_LOCAL;
- return _wizard($sig, map { $opts{$_} } @types);
+ return _wizard($sig, map { $opts{$_} } qw/data get set len clear free copy dup local fetch store exists delete/);
 }
 
 =head2 C<gensig>