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";
21 ++$a; # "got 1!", "now set to 3!"
26 } # "got 123!", "deleted!"
27 my $b = $a; # "got 3!"
28 $a = 3; # "now set to 4!"