1*0Sstevel@tonic-gate av.c 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gate Mandatory Warnings ALL TODO 4*0Sstevel@tonic-gate ------------------ 5*0Sstevel@tonic-gate av_reify called on tied array [av_reify] 6*0Sstevel@tonic-gate 7*0Sstevel@tonic-gate Attempt to clear deleted array [av_clear] 8*0Sstevel@tonic-gate 9*0Sstevel@tonic-gate__END__ 10*0Sstevel@tonic-gate# av.c 11*0Sstevel@tonic-gate$struct = [{foo => 1, bar => 2}, "FOO", "BAR"]; 12*0Sstevel@tonic-gateuse warnings 'deprecated'; 13*0Sstevel@tonic-gate$a = $struct->{foo}; # This should warn. 14*0Sstevel@tonic-gateno warnings 'deprecated'; 15*0Sstevel@tonic-gate$b = $struct->{bar}; # This should not warn. 16*0Sstevel@tonic-gatebless $struct, 'HlagHlag'; 17*0Sstevel@tonic-gateuse warnings 'deprecated'; 18*0Sstevel@tonic-gate$a = $struct->{foo}; # This should warn. 19*0Sstevel@tonic-gateno warnings 'deprecated'; 20*0Sstevel@tonic-gate$b = $struct->{bar}; # This should not warn. 21*0Sstevel@tonic-gateEXPECT 22*0Sstevel@tonic-gatePseudo-hashes are deprecated at - line 4. 23*0Sstevel@tonic-gatePseudo-hashes are deprecated at - line 9. 24*0Sstevel@tonic-gate######## 25*0Sstevel@tonic-gatepackage Foo; 26*0Sstevel@tonic-gateuse warnings 'deprecated'; 27*0Sstevel@tonic-gateuse fields qw(foo bar); 28*0Sstevel@tonic-gatemy $foo = fields::new('Foo'); 29*0Sstevel@tonic-gate$foo->{foo} = 42; 30*0Sstevel@tonic-gateEXPECT 31