I am susing XML::Simple to read an XML file. I have forced it to use arrays, so I can access items like this:
This is great, but level3 is a hash and I want the keys of the hash. If I use something like:
I just get: HASH(0x23a11d4)
I know this probably just need dereferencing somehow but I can't work it out.
Any ideas? ;-)
Thanks in advance...
Code:
print "$config1->{level1}->[0]->{level2}->[0]->{level3}->[0]";
This is great, but level3 is a hash and I want the keys of the hash. If I use something like:
Code:
%hash=$config1->{level1}->[0]->{level2}->[0];
@keys=keys(%hash);
I just get: HASH(0x23a11d4)
I know this probably just need dereferencing somehow but I can't work it out.
Any ideas? ;-)
Thanks in advance...