kris1511 has asked for the wisdom of the Perl Monks concerning the following question:
I need to access elements 8959, 10710, 10710 to find their distinct count. For now am not sure how to access them. Any kinds of pointers will be helpfulfor $aref ( @result ) { print "\t [ @$aref ],\n"; } Gives output like ARRAY(0x4b72d28) ARRAY(0x4ba58d8) ARRAY(0x4bdb108) Print Dumper @results; Output looks like one below $VAR1 = [ [ '8959', 'The song by the three rivers', undef, undef ], [ '10710', 'cars by the rodeo drive', '38', undef], [ '10710', 'cars by the rodeo drive', '43', undef] ];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Trying to access array of arrays
by ikegami (Patriarch) on Aug 21, 2017 at 21:24 UTC | |
|
Re: Trying to access array of arrays
by shmem (Chancellor) on Aug 21, 2017 at 22:20 UTC | |
|
Re: Trying to access array of arrays
by AnomalousMonk (Archbishop) on Aug 22, 2017 at 03:15 UTC | |
|
Re: Trying to access array of arrays
by thanos1983 (Parson) on Aug 22, 2017 at 08:24 UTC |