6 use Test::More tests => 2 * 2 * 4;
16 $r = $w->[0][$i] for 1 .. $n;
18 is_deeply $w, undef, 'numerous fetches from an undef lexical';
24 $r = $w->[0][$i] for 1 .. $n;
26 is_deeply $w, [ undef ], 'numerous fetches from a 1-level arrayref lexical';
34 $r = $w->[0][$i] for 1 .. $n;
36 is_deeply $w, undef, 'numerous fetches from an undef global';
42 $r = $w->[0][$i] for 1 .. $n;
44 is_deeply $w, [ undef ], 'numerous fetches from a 1-level arrayref global';
52 @r = @{$x}[0, 1] for 1 .. $n;
54 is_deeply $x, undef, 'numerous slices from an undef lexical';
60 @r = @{$x->[0]}[0, 1] for 1 .. $n;
62 is_deeply $x, [ undef ], 'numerous slices from a 1-level arrayref lexical';
70 @r = @{$x}[0, 1] for 1 .. $n;
72 is_deeply $x, undef, 'numerous slices from an undef global';
78 @r = @{$x->[0]}[0, 1] for 1 .. $n;
80 is_deeply $x, [ undef ], 'numerous slices from a 1-level arrayref global';
87 $r = exists $y->[0][$i] for 1 .. $n;
89 is_deeply $y, undef, 'numerous exists from an undef lexical';
95 $r = exists $y->[0][$i] for 1 .. $n;
97 is_deeply $y, [ undef ], 'numerous exists from a 1-level arrayref lexical';
105 $r = exists $y->[0][$i] for 1 .. $n;
107 is_deeply $y, undef, 'numerous exists from an undef global';
113 $r = exists $y->[0][$i] for 1 .. $n;
115 is_deeply $y, [ undef ], 'numerous exists from a 1-level arrayref global';
123 $r = delete $z->[0][$i] for 1 .. $n;
125 is_deeply $z, undef, 'numerous deletes from an undef lexical';
131 $r = delete $z->[0][$i] for 1 .. $n;
133 is_deeply $z, [ undef ], 'numerous deletes from a 1-level arrayref lexical';
141 $r = delete $z->[0][$i] for 1 .. $n;
143 is_deeply $z, undef, 'numerous deletes from an undef global';
149 $r = delete $z->[0][$i] for 1 .. $n;
151 is_deeply $z, [ undef ], 'numerous deletes from a 1-level arrayref global';