- or download this
my %struct = (data => 1, pointers => []);
my $struct_ref = \%struct;
- or download this
my $struct_ref = {data => 1, pointers => []};
- or download this
my @array_of_structs = (\%struct1, $struct2_ref, {data => 1, pointers
+=> []});
push @array_of_structs, \%new_struct;
- or download this
my $first_data = $array_of_structs[0]{data};
push @{ $array_of_structs[2]{pointers} }, 'abc', 'def';
my $third_struct_second_pointer = $array_of_structs[2]{pointers}[1];