w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Accessing elements in an array of hashes of hashes (Perl)

The array contains references to hashes. You need to dereference them:

for my $keyA (sort keys %{ $a[0] })
   for my $keyB (sort keys %{ $a[0]{$keyA} }) {

More info on references can be found in man perlref

© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.