I have a complex data structure and I'm getting lost in the syntax. The top level of the structure is an array, let's call it "objarray" (about 90 elements). Each element of "objarray" is a hash. One of the hash's keys is called "apts". The value of that key is a 2D array (let's call it "aptarray"), consisting of 2 columns and several rows. How do I access the [3][1] element of "aptarray" in the 72nd element of the top-level "objarray"? The syntax I tried produces an error: "syntax error at test.pl line 292, near "][" "
292: my $value = @{$objarray[72]{'apts'}}[3][1];| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |