6 use lib qw{blib/arch blib/lib};
7 use Variable::Magic qw/wizard getsig cast dispell/;
9 sub foo { print STDERR "got ${$_[0]}!\n" }
10 my $bar = sub { ++${$_[0]}; print STDERR "now set to ${$_[0]}!\n"; };
15 my $wiz = wizard get => \&foo,
17 free => sub { print STDERR "deleted!\n"; };
19 print "my sig is $sig\n";
20 cast $a, $wiz, qw/a b c/;
21 ++$a; # "got 1!", "now set to 3!"
27 my $b = $a; # "got 3!"
28 $a = 3; # "now set to 4!"