8 eval "use Symbol qw/gensym/";
10 plan skip_all => "Symbol::gensym required for testing magic for globs";
13 diag "Using Symbol $Symbol::VERSION" if defined $Symbol::VERSION;
16 use Variable::Magic qw/wizard cast dispell/;
22 is join(':', map { (defined) ? $_ : 'u' } @c[0 .. 11]),
23 join(':', map { (defined) ? $_ : 'u' } @x[0 .. 11]),
28 my $wiz = wizard get => sub { ++$c[0] },
29 set => sub { ++$c[1] },
30 len => sub { ++$c[2] },
31 clear => sub { ++$c[3] },
32 free => sub { ++$c[4] },
33 copy => sub { ++$c[5] },
34 dup => sub { ++$c[6] },
35 local => sub { ++$c[7] },
36 fetch => sub { ++$c[8] },
37 store => sub { ++$c[9] },
38 'exists' => sub { ++$c[10] },
39 'delete' => sub { ++$c[11] };
40 check('glob : create wizard');
48 check('glob : assign to');
52 check('glob : assign');
58 check('glob : scope end');
61 check('glob : undef');
64 check('glob : dispell');