7 use Test::Leaner tests => 9 * 3 * 302;
9 use autovivification::TestCases;
21 $x # $x->[0] # '', undef, [ ]
22 $x # $x->[0] # '', undef, undef #
23 $x # $x->[0] # '', undef, undef # +fetch
24 $x # $x->[0] # '', undef, [ ] # +exists
25 $x # $x->[0] # '', undef, [ ] # +delete
26 $x # $x->[0] # '', undef, [ ] # +store
28 $x # $x->[0] # '', undef, [ ] # -fetch
29 $x # $x->[0] # '', undef, [ ] # +fetch -fetch
30 $x # $x->[0] # '', undef, undef # -fetch +fetch
31 $x # $x->[0] # '', undef, undef # +fetch -exists
33 $x # $x->[0] # qr/^Reference vivification forbidden/, undef, undef # +strict +fetch
34 $x # $x->[0] # '', undef, [ ] # +strict +exists
35 $x # $x->[0] # '', undef, [ ] # +strict +delete
36 $x # $x->[0] # '', undef, [ ] # +strict +store
38 $x # $x->[0]->[1] # '', undef, [ [ ] ]
39 $x # $x->[0]->[1] # '', undef, undef #
40 $x # $x->[0]->[1] # '', undef, undef # +fetch
41 $x # $x->[0]->[1] # '', undef, [ [ ] ] # +exists
42 $x # $x->[0]->[1] # '', undef, [ [ ] ] # +delete
43 $x # $x->[0]->[1] # '', undef, [ [ ] ] # +store
45 $x # $x->[0]->[1] # qr/^Reference vivification forbidden/, undef, undef # +strict +fetch
46 $x # $x->[0]->[1] # '', undef, [ [ ] ] # +strict +exists
47 $x # $x->[0]->[1] # '', undef, [ [ ] ] # +strict +delete
48 $x # $x->[0]->[1] # '', undef, [ [ ] ] # +strict +store
50 $x->[0] = 1 # $x->[0] # '', 1, [ 1 ] # +fetch
51 $x->[0] = 1 # $x->[1] # '', undef, [ 1 ] # +fetch
52 $x->[0] = 1 # $x->[0] # '', 1, [ 1 ] # +exists
53 $x->[0] = 1 # $x->[1] # '', undef, [ 1 ] # +exists
54 $x->[0] = 1 # $x->[0] # '', 1, [ 1 ] # +delete
55 $x->[0] = 1 # $x->[1] # '', undef, [ 1 ] # +delete
56 $x->[0] = 1 # $x->[0] # '', 1, [ 1 ] # +store
57 $x->[0] = 1 # $x->[1] # '', undef, [ 1 ] # +store
59 $x->[0] = 1 # $x->[0] # '', 1, [ 1 ] # +strict +fetch
60 $x->[0] = 1 # $x->[1] # '', undef, [ 1 ] # +strict +fetch
61 $x->[0] = 1 # $x->[0] # '', 1, [ 1 ] # +strict +exists
62 $x->[0] = 1 # $x->[1] # '', undef, [ 1 ] # +strict +exists
63 $x->[0] = 1 # $x->[0] # '', 1, [ 1 ] # +strict +delete
64 $x->[0] = 1 # $x->[1] # '', undef, [ 1 ] # +strict +delete
65 $x->[0] = 1 # $x->[0] # '', 1, [ 1 ] # +strict +store
66 $x->[0] = 1 # $x->[1] # '', undef, [ 1 ] # +strict +store
68 $x->[0]->[1] = 1 # $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +fetch
69 $x->[0]->[1] = 1 # $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +fetch
70 $x->[0]->[1] = 1 # $x->[2]->[3] # '', undef, [ [ undef, 1 ] ] # +fetch
71 $x->[0]->[1] = 1 # $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +exists
72 $x->[0]->[1] = 1 # $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +exists
73 $x->[0]->[1] = 1 # $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ] # +exists
74 $x->[0]->[1] = 1 # $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +delete
75 $x->[0]->[1] = 1 # $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +delete
76 $x->[0]->[1] = 1 # $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ] # +delete
77 $x->[0]->[1] = 1 # $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +store
78 $x->[0]->[1] = 1 # $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +store
79 $x->[0]->[1] = 1 # $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ] # +store
81 $x->[0]->[1] = 1 # $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +strict +fetch
82 $x->[0]->[1] = 1 # $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +strict +fetch
83 $x->[0]->[1] = 1 # $x->[2]->[3] # qr/^Reference vivification forbidden/, undef, [ [ undef, 1 ] ] # +strict +fetch
84 $x->[0]->[1] = 1 # $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +strict +exists
85 $x->[0]->[1] = 1 # $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +strict +exists
86 $x->[0]->[1] = 1 # $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ] # +strict +exists
87 $x->[0]->[1] = 1 # $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +strict +delete
88 $x->[0]->[1] = 1 # $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +strict +delete
89 $x->[0]->[1] = 1 # $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ] # +strict +delete
90 $x->[0]->[1] = 1 # $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +strict +store
91 $x->[0]->[1] = 1 # $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +strict +store
92 $x->[0]->[1] = 1 # $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ] # +strict +store
96 $x # 1 for $x->[0]; () # '', undef, [ undef ]
97 $x # 1 for $x->[0]; () # '', undef, [ undef ] #
98 $x # 1 for $x->[0]; () # '', undef, [ undef ] # +fetch
99 $x # 1 for $x->[0]; () # '', undef, [ undef ] # +exists
100 $x # 1 for $x->[0]; () # '', undef, [ undef ] # +delete
101 $x # 1 for $x->[0]; () # qr/^Can't vivify reference/, undef, undef # +store
103 $x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ]
104 $x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ] #
105 $x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ] # +fetch
106 $x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ] # +exists
107 $x # $_ = 1 for $x->[0]; () # '', undef, [ 1 ] # +delete
108 $x # $_ = 1 for $x->[0]; () # qr/^Can't vivify reference/, undef, undef # +store
110 $x->[0] = 1 # 1 for $x->[0]; () # '', undef, [ 1 ] # +fetch
111 $x->[0] = 1 # 1 for $x->[1]; () # '', undef, [ 1, undef ] # +fetch
112 $x->[0] = 1 # 1 for $x->[0]; () # '', undef, [ 1 ] # +exists
113 $x->[0] = 1 # 1 for $x->[1]; () # '', undef, [ 1, undef ] # +exists
114 $x->[0] = 1 # 1 for $x->[0]; () # '', undef, [ 1 ] # +delete
115 $x->[0] = 1 # 1 for $x->[1]; () # '', undef, [ 1, undef ] # +delete
116 $x->[0] = 1 # 1 for $x->[0]; () # '', undef, [ 1 ] # +store
117 $x->[0] = 1 # 1 for $x->[1]; () # '', undef, [ 1, undef ] # +store
119 $x # do_nothing($x->[0]); () # '', undef, [ ]
120 $x # do_nothing($x->[0]); () # '', undef, [ ] #
121 $x # do_nothing($x->[0]); () # '', undef, [ ] # +fetch
122 $x # do_nothing($x->[0]); () # '', undef, [ ] # +exists
123 $x # do_nothing($x->[0]); () # '', undef, [ ] # +delete
124 $x # do_nothing($x->[0]); () # qr/^Can't vivify reference/, undef, undef # +store
126 $x # set_arg($x->[0]); () # '', undef, [ 1 ]
127 $x # set_arg($x->[0]); () # '', undef, [ 1 ] #
128 $x # set_arg($x->[0]); () # '', undef, [ 1 ] # +fetch
129 $x # set_arg($x->[0]); () # '', undef, [ 1 ] # +exists
130 $x # set_arg($x->[0]); () # '', undef, [ 1 ] # +delete
131 $x # set_arg($x->[0]); () # qr/^Can't vivify reference/, undef, undef # +store
133 --- dereferencing ---
135 $x # no warnings 'uninitialized'; my @a = @$x; () # ($strict ? qr/^Can't use an undefined value as an ARRAY reference/ : ''), undef, undef
136 $x # no warnings 'uninitialized'; my @a = @$x; () # ($strict ? qr/^Can't use an undefined value as an ARRAY reference/ : ''), undef, undef #
137 $x # no warnings 'uninitialized'; my @a = @$x; () # ($strict ? qr/^Can't use an undefined value as an ARRAY reference/ : ''), undef, undef # +fetch
138 $x # no warnings 'uninitialized'; my @a = @$x; () # ($strict ? qr/^Can't use an undefined value as an ARRAY reference/ : ''), undef, undef # +exists
139 $x # no warnings 'uninitialized'; my @a = @$x; () # ($strict ? qr/^Can't use an undefined value as an ARRAY reference/ : ''), undef, undef # +delete
140 $x # no warnings 'uninitialized'; my @a = @$x; () # ($strict ? qr/^Can't use an undefined value as an ARRAY reference/ : ''), undef, undef # +store
142 $x->[0] = 1 # my @a = @$x; () # '', undef, [ 1 ] # +fetch
143 $x->[0] = 1 # my @a = @$x; () # '', undef, [ 1 ] # +exists
144 $x->[0] = 1 # my @a = @$x; () # '', undef, [ 1 ] # +delete
145 $x->[0] = 1 # my @a = @$x; () # '', undef, [ 1 ] # +store
149 $x # my @a = @$x[0, 1]; \@a # '', [ undef, undef ], [ ]
150 $x # my @a = @$x[0, 1]; \@a # '', [ undef, undef ], undef #
151 $x # my @a = @$x[0, 1]; \@a # '', [ undef, undef ], undef # +fetch
152 $x # my @a = @$x[0, 1]; \@a # '', [ undef, undef ], [ ] # +exists
153 $x # my @a = @$x[0, 1]; \@a # '', [ undef, undef ], [ ] # +delete
154 $x # my @a = @$x[0, 1]; \@a # '', [ undef, undef ], [ ] # +store
156 $x->[1] = 0 # my @a = @$x[0, 1]; \@a # '', [ undef, 0 ], [ undef, 0 ] # +fetch
158 $x # @$x[0, 1] = (1, 2); () # '', undef, [ 1, 2 ]
159 $x # @$x[0, 1] = (1, 2); () # '', undef, [ 1, 2 ] #
160 $x # @$x[0, 1] = (1, 2); () # '', undef, [ 1, 2 ] # +fetch
161 $x # @$x[0, 1] = (1, 2); () # '', undef, [ 1, 2 ] # +exists
162 $x # @$x[0, 1] = (1, 2); () # '', undef, [ 1, 2 ] # +delete
163 $x # @$x[0, 1] = (1, 2); () # qr/^Can't vivify reference/, undef, undef # +store
165 $x->[0] = 0 # @$x[0, 1] = (1, 2); () # '', undef, [ 1, 2 ] # +store
166 $x->[2] = 0 # @$x[0, 1] = (1, 2); () # '', undef, [ 1, 2, 0 ] # +store
167 $x->[0] = 0, $x->[1] = 0 # @$x[0, 1] = (1, 2); () # '', undef, [ 1, 2 ] # +store
171 $x # exists $x->[0] # '', '', [ ]
172 $x # exists $x->[0] # '', '', undef #
173 $x # exists $x->[0] # '', '', [ ] # +fetch
174 $x # exists $x->[0] # '', '', undef # +exists
175 $x # exists $x->[0] # '', '', [ ] # +delete
176 $x # exists $x->[0] # '', '', [ ] # +store
178 $x # exists $x->[0] # '', '', [ ] # +strict +fetch
179 $x # exists $x->[0] # qr/^Reference vivification forbidden/, undef, undef # +strict +exists
180 $x # exists $x->[0] # '', '', [ ] # +strict +delete
181 $x # exists $x->[0] # '', '', [ ] # +strict +store
183 $x # exists $x->[0]->[1] # '', '', [ [ ] ]
184 $x # exists $x->[0]->[1] # '', '', undef #
185 $x # exists $x->[0]->[1] # '', '', [ [ ] ] # +fetch
186 $x # exists $x->[0]->[1] # '', '', undef # +exists
187 $x # exists $x->[0]->[1] # '', '', [ [ ] ] # +delete
188 $x # exists $x->[0]->[1] # '', '', [ [ ] ] # +store
190 $x # exists $x->[0]->[1] # '', '', [ [ ] ] # +strict +fetch
191 $x # exists $x->[0]->[1] # qr/^Reference vivification forbidden/, undef, undef # +strict +exists
192 $x # exists $x->[0]->[1] # '', '', [ [ ] ] # +strict +delete
193 $x # exists $x->[0]->[1] # '', '', [ [ ] ] # +strict +store
195 $x->[0] = 1 # exists $x->[0] # '', 1, [ 1 ] # +fetch
196 $x->[0] = 1 # exists $x->[1] # '', '', [ 1 ] # +fetch
197 $x->[0] = 1 # exists $x->[0] # '', 1, [ 1 ] # +exists
198 $x->[0] = 1 # exists $x->[1] # '', '', [ 1 ] # +exists
199 $x->[0] = 1 # exists $x->[0] # '', 1, [ 1 ] # +delete
200 $x->[0] = 1 # exists $x->[1] # '', '', [ 1 ] # +delete
201 $x->[0] = 1 # exists $x->[0] # '', 1, [ 1 ] # +store
202 $x->[0] = 1 # exists $x->[1] # '', '', [ 1 ] # +store
204 $x->[0] = 1 # exists $x->[0] # '', 1, [ 1 ] # +strict +fetch
205 $x->[0] = 1 # exists $x->[1] # '', '', [ 1 ] # +strict +fetch
206 $x->[0] = 1 # exists $x->[0] # '', 1, [ 1 ] # +strict +exists
207 $x->[0] = 1 # exists $x->[1] # '', '', [ 1 ] # +strict +exists
208 $x->[0] = 1 # exists $x->[0] # '', 1, [ 1 ] # +strict +delete
209 $x->[0] = 1 # exists $x->[1] # '', '', [ 1 ] # +strict +delete
210 $x->[0] = 1 # exists $x->[0] # '', 1, [ 1 ] # +strict +store
211 $x->[0] = 1 # exists $x->[1] # '', '', [ 1 ] # +strict +store
213 $x->[0]->[1] = 1 # exists $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +fetch
214 $x->[0]->[1] = 1 # exists $x->[0]->[3] # '', '', [ [ undef, 1 ] ] # +fetch
215 $x->[0]->[1] = 1 # exists $x->[2]->[3] # '', '', [ [ undef, 1 ], undef, [ ] ] # +fetch
216 $x->[0]->[1] = 1 # exists $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +exists
217 $x->[0]->[1] = 1 # exists $x->[0]->[3] # '', '', [ [ undef, 1 ] ] # +exists
218 $x->[0]->[1] = 1 # exists $x->[2]->[3] # '', '', [ [ undef, 1 ] ] # +exists
219 $x->[0]->[1] = 1 # exists $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +delete
220 $x->[0]->[1] = 1 # exists $x->[0]->[3] # '', '', [ [ undef, 1 ] ] # +delete
221 $x->[0]->[1] = 1 # exists $x->[2]->[3] # '', '', [ [ undef, 1 ], undef, [ ] ] # +delete
222 $x->[0]->[1] = 1 # exists $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +store
223 $x->[0]->[1] = 1 # exists $x->[0]->[3] # '', '', [ [ undef, 1 ] ] # +store
224 $x->[0]->[1] = 1 # exists $x->[2]->[3] # '', '', [ [ undef, 1 ], undef, [ ] ] # +store
226 $x->[0]->[1] = 1 # exists $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +strict +fetch
227 $x->[0]->[1] = 1 # exists $x->[0]->[3] # '', '', [ [ undef, 1 ] ] # +strict +fetch
228 $x->[0]->[1] = 1 # exists $x->[2]->[3] # '', '', [ [ undef, 1 ], undef, [ ] ] # +strict +fetch
229 $x->[0]->[1] = 1 # exists $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +strict +exists
230 $x->[0]->[1] = 1 # exists $x->[0]->[3] # '', '', [ [ undef, 1 ] ] # +strict +exists
231 $x->[0]->[1] = 1 # exists $x->[2]->[3] # qr/^Reference vivification forbidden/, undef, [ [ undef, 1 ] ] # +strict +exists
232 $x->[0]->[1] = 1 # exists $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +strict +delete
233 $x->[0]->[1] = 1 # exists $x->[0]->[3] # '', '', [ [ undef, 1 ] ] # +strict +delete
234 $x->[0]->[1] = 1 # exists $x->[2]->[3] # '', '', [ [ undef, 1 ], undef, [ ] ] # +strict +delete
235 $x->[0]->[1] = 1 # exists $x->[0]->[1] # '', 1, [ [ undef, 1 ] ] # +strict +store
236 $x->[0]->[1] = 1 # exists $x->[0]->[3] # '', '', [ [ undef, 1 ] ] # +strict +store
237 $x->[0]->[1] = 1 # exists $x->[2]->[3] # '', '', [ [ undef, 1 ], undef, [ ] ] # +strict +store
241 $x # delete $x->[0] # '', undef, [ ]
242 $x # delete $x->[0] # '', undef, undef #
243 $x # delete $x->[0] # '', undef, [ ] # +fetch
244 $x # delete $x->[0] # '', undef, [ ] # +exists
245 $x # delete $x->[0] # '', undef, undef # +delete
246 $x # delete $x->[0] # '', undef, [ ] # +store
248 $x # delete $x->[0] # '', undef, [ ] # +strict +fetch
249 $x # delete $x->[0] # '', undef, [ ] # +strict +exists
250 $x # delete $x->[0] # qr/^Reference vivification forbidden/, undef, undef # +strict +delete
251 $x # delete $x->[0] # '', undef, [ ] # +strict +store
253 $x # delete $x->[0]->[1] # '', undef, [ [ ] ]
254 $x # delete $x->[0]->[1] # '', undef, undef #
255 $x # delete $x->[0]->[1] # '', undef, [ [ ] ] # +fetch
256 $x # delete $x->[0]->[1] # '', undef, [ [ ] ] # +exists
257 $x # delete $x->[0]->[1] # '', undef, undef # +delete
258 $x # delete $x->[0]->[1] # '', undef, [ [ ] ] # +store
260 $x # delete $x->[0]->[1] # '', undef, [ [ ] ] # +strict +fetch
261 $x # delete $x->[0]->[1] # '', undef, [ [ ] ] # +strict +exists
262 $x # delete $x->[0]->[1] # qr/^Reference vivification forbidden/, undef, undef # +strict +delete
263 $x # delete $x->[0]->[1] # '', undef, [ [ ] ] # +strict +store
265 $x->[0] = 1 # delete $x->[0] # '', 1, [ ] # +fetch
266 $x->[0] = 1 # delete $x->[1] # '', undef, [ 1 ] # +fetch
267 $x->[0] = 1 # delete $x->[0] # '', 1, [ ] # +exists
268 $x->[0] = 1 # delete $x->[1] # '', undef, [ 1 ] # +exists
269 $x->[0] = 1 # delete $x->[0] # '', 1, [ ] # +delete
270 $x->[0] = 1 # delete $x->[1] # '', undef, [ 1 ] # +delete
271 $x->[0] = 1 # delete $x->[0] # '', 1, [ ] # +store
272 $x->[0] = 1 # delete $x->[1] # '', undef, [ 1 ] # +store
274 $x->[0] = 1 # delete $x->[0] # '', 1, [ ] # +strict +fetch
275 $x->[0] = 1 # delete $x->[1] # '', undef, [ 1 ] # +strict +fetch
276 $x->[0] = 1 # delete $x->[0] # '', 1, [ ] # +strict +exists
277 $x->[0] = 1 # delete $x->[1] # '', undef, [ 1 ] # +strict +exists
278 $x->[0] = 1 # delete $x->[0] # '', 1, [ ] # +strict +delete
279 $x->[0] = 1 # delete $x->[1] # '', undef, [ 1 ] # +strict +delete
280 $x->[0] = 1 # delete $x->[0] # '', 1, [ ] # +strict +store
281 $x->[0] = 1 # delete $x->[1] # '', undef, [ 1 ] # +strict +store
283 $x->[0]->[1] = 1 # delete $x->[0]->[1] # '', 1, [ [ ] ] # +fetch
284 $x->[0]->[1] = 1 # delete $x->[0]->[3] # '', undef, [ [ undef, 1 ] ]# +fetch
285 $x->[0]->[1] = 1 # delete $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ] # +fetch
286 $x->[0]->[1] = 1 # delete $x->[0]->[1] # '', 1, [ [ ] ] # +exists
287 $x->[0]->[1] = 1 # delete $x->[0]->[3] # '', undef, [ [ undef, 1 ] ]# +exists
288 $x->[0]->[1] = 1 # delete $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ] # +exists
289 $x->[0]->[1] = 1 # delete $x->[0]->[1] # '', 1, [ [ ] ] # +delete
290 $x->[0]->[1] = 1 # delete $x->[0]->[3] # '', undef, [ [ undef, 1 ] ]# +delete
291 $x->[0]->[1] = 1 # delete $x->[2]->[3] # '', undef, [ [ undef, 1 ] ]# +delete
292 $x->[0]->[1] = 1 # delete $x->[0]->[1] # '', 1, [ [ ] ] # +store
293 $x->[0]->[1] = 1 # delete $x->[0]->[3] # '', undef, [ [ undef, 1 ] ]# +store
294 $x->[0]->[1] = 1 # delete $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ] # +store
296 $x->[0]->[1] = 1 # delete $x->[0]->[1] # '', 1, [ [ ] ] # +strict +fetch
297 $x->[0]->[1] = 1 # delete $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +strict +fetch
298 $x->[0]->[1] = 1 # delete $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ]# +strict +fetch
299 $x->[0]->[1] = 1 # delete $x->[0]->[1] # '', 1, [ [ ] ] # +strict +exists
300 $x->[0]->[1] = 1 # delete $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +strict +exists
301 $x->[0]->[1] = 1 # delete $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ]# +strict +exists
302 $x->[0]->[1] = 1 # delete $x->[0]->[1] # '', 1, [ [ ] ] # +strict +delete
303 $x->[0]->[1] = 1 # delete $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +strict +delete
304 $x->[0]->[1] = 1 # delete $x->[2]->[3] # qr/^Reference vivification forbidden/, undef, [ [ undef, 1 ] ] # +strict +delete
305 $x->[0]->[1] = 1 # delete $x->[0]->[1] # '', 1, [ [ ] ] # +strict +store
306 $x->[0]->[1] = 1 # delete $x->[0]->[3] # '', undef, [ [ undef, 1 ] ] # +strict +store
307 $x->[0]->[1] = 1 # delete $x->[2]->[3] # '', undef, [ [ undef, 1 ], undef, [ ] ]# +strict +store
311 $x # $x->[0] = 1 # '', 1, [ 1 ]
312 $x # $x->[0] = 1 # '', 1, [ 1 ] #
313 $x # $x->[0] = 1 # '', 1, [ 1 ] # +fetch
314 $x # $x->[0] = 1 # '', 1, [ 1 ] # +exists
315 $x # $x->[0] = 1 # '', 1, [ 1 ] # +delete
316 $x # $x->[0] = 1 # qr/^Can't vivify reference/, undef, undef # +store
318 $x # $x->[0] = 1 # '', 1, [ 1 ] # +strict +fetch
319 $x # $x->[0] = 1 # '', 1, [ 1 ] # +strict +exists
320 $x # $x->[0] = 1 # '', 1, [ 1 ] # +strict +delete
321 $x # $x->[0] = 1 # qr/^Reference vivification forbidden/, undef, undef # +strict +store
323 $x # $x->[0]->[1] = 1 # '', 1, [ [ undef, 1 ] ]
324 $x # $x->[0]->[1] = 1 # '', 1, [ [ undef, 1 ] ] #
325 $x # $x->[0]->[1] = 1 # '', 1, [ [ undef, 1 ] ] # +fetch
326 $x # $x->[0]->[1] = 1 # '', 1, [ [ undef, 1 ] ] # +exists
327 $x # $x->[0]->[1] = 1 # '', 1, [ [ undef, 1 ] ] # +delete
328 $x # $x->[0]->[1] = 1 # qr/^Can't vivify reference/, undef, undef # +store
330 $x # $x->[0]->[1] = 1 # '', 1, [ [ undef, 1 ] ] # +strict +fetch
331 $x # $x->[0]->[1] = 1 # '', 1, [ [ undef, 1 ] ] # +strict +exists
332 $x # $x->[0]->[1] = 1 # '', 1, [ [ undef, 1 ] ] # +strict +delete
333 $x # $x->[0]->[1] = 1 # qr/^Reference vivification forbidden/, undef, undef # +strict +store
335 $x->[0] = 1 # $x->[0] = 2 # '', 2, [ 2 ] # +fetch
336 $x->[0] = 1 # $x->[1] = 2 # '', 2, [ 1, 2 ] # +fetch
337 $x->[0] = 1 # $x->[0] = 2 # '', 2, [ 2 ] # +exists
338 $x->[0] = 1 # $x->[1] = 2 # '', 2, [ 1, 2 ] # +exists
339 $x->[0] = 1 # $x->[0] = 2 # '', 2, [ 2 ] # +delete
340 $x->[0] = 1 # $x->[1] = 2 # '', 2, [ 1, 2 ] # +delete
341 $x->[0] = 1 # $x->[0] = 2 # '', 2, [ 2 ] # +store
342 $x->[0] = 1 # $x->[1] = 2 # '', 2, [ 1, 2 ] # +store
344 $x->[0] = 1 # $x->[0] = 2 # '', 2, [ 2 ] # +strict +fetch
345 $x->[0] = 1 # $x->[1] = 2 # '', 2, [ 1, 2 ] # +strict +fetch
346 $x->[0] = 1 # $x->[0] = 2 # '', 2, [ 2 ] # +strict +exists
347 $x->[0] = 1 # $x->[1] = 2 # '', 2, [ 1, 2 ] # +strict +exists
348 $x->[0] = 1 # $x->[0] = 2 # '', 2, [ 2 ] # +strict +delete
349 $x->[0] = 1 # $x->[1] = 2 # '', 2, [ 1, 2 ] # +strict +delete
350 $x->[0] = 1 # $x->[0] = 2 # '', 2, [ 2 ] # +strict +store
351 $x->[0] = 1 # $x->[1] = 2 # '', 2, [ 1, 2 ] # +strict +store
353 $x->[0]->[1] = 1 # $x->[0]->[1] = 2 # '', 2, [ [ undef, 2 ] ] # +fetch
354 $x->[0]->[1] = 1 # $x->[0]->[3] = 2 # '', 2, [ [ undef, 1, undef, 2 ] ] # +fetch
355 $x->[0]->[1] = 1 # $x->[2]->[3] = 2 # '', 2, [ [ undef, 1 ], undef, [ undef, undef, undef, 2 ] ] # +fetch
356 $x->[0]->[1] = 1 # $x->[0]->[1] = 2 # '', 2, [ [ undef, 2 ] ] # +exists
357 $x->[0]->[1] = 1 # $x->[0]->[3] = 2 # '', 2, [ [ undef, 1, undef, 2 ] ] # +exists
358 $x->[0]->[1] = 1 # $x->[2]->[3] = 2 # '', 2, [ [ undef, 1 ], undef, [ undef, undef, undef, 2 ] ] # +exists
359 $x->[0]->[1] = 1 # $x->[0]->[1] = 2 # '', 2, [ [ undef, 2 ] ] # +delete
360 $x->[0]->[1] = 1 # $x->[0]->[3] = 2 # '', 2, [ [ undef, 1, undef, 2 ] ] # +delete
361 $x->[0]->[1] = 1 # $x->[2]->[3] = 2 # '', 2, [ [ undef, 1 ], undef, [ undef, undef, undef, 2 ] ] # +delete
362 $x->[0]->[1] = 1 # $x->[0]->[1] = 2 # '', 2, [ [ undef, 2 ] ] # +store
363 $x->[0]->[1] = 1 # $x->[0]->[3] = 2 # '', 2, [ [ undef, 1, undef, 2 ] ] # +store
364 $x->[0]->[1] = 1 # $x->[2]->[3] = 2 # qr/^Can't vivify reference/, undef, [ [ undef, 1 ] ] # +store
366 $x->[0]->[1] = 1 # $x->[0]->[1] = 2 # '', 2, [ [ undef, 2 ] ] # +strict +fetch
367 $x->[0]->[1] = 1 # $x->[0]->[3] = 2 # '', 2, [ [ undef, 1, undef, 2 ] ] # +strict +fetch
368 $x->[0]->[1] = 1 # $x->[2]->[3] = 2 # '', 2, [ [ undef, 1 ], undef, [ undef, undef, undef, 2 ] ] # +strict +fetch
369 $x->[0]->[1] = 1 # $x->[0]->[1] = 2 # '', 2, [ [ undef, 2 ] ] # +strict +exists
370 $x->[0]->[1] = 1 # $x->[0]->[3] = 2 # '', 2, [ [ undef, 1, undef, 2 ] ] # +strict +exists
371 $x->[0]->[1] = 1 # $x->[2]->[3] = 2 # '', 2, [ [ undef, 1 ], undef, [ undef, undef, undef, 2 ] ] # +strict +exists
372 $x->[0]->[1] = 1 # $x->[0]->[1] = 2 # '', 2, [ [ undef, 2 ] ] # +strict +delete
373 $x->[0]->[1] = 1 # $x->[0]->[3] = 2 # '', 2, [ [ undef, 1, undef, 2 ] ] # +strict +delete
374 $x->[0]->[1] = 1 # $x->[2]->[3] = 2 # '', 2, [ [ undef, 1 ], undef, [ undef, undef, undef, 2 ] ] # +strict +delete
375 $x->[0]->[1] = 1 # $x->[0]->[1] = 2 # '', 2, [ [ undef, 2 ] ] # +strict +store
376 $x->[0]->[1] = 1 # $x->[0]->[3] = 2 # '', 2, [ [ undef, 1, undef, 2 ] ] # +strict +store
377 $x->[0]->[1] = 1 # $x->[2]->[3] = 2 # qr/^Reference vivification forbidden/, undef, [ [ undef, 1 ] ] # +strict +store