in reply to Confused about accessing hashes
First, your $VAR1 is a reference to a hash with only one key, so
is needed. This one is another reference to another hash with only the key 'SERVER', so$VAR1->{ETPT}
Now, this is a reference to an array. You want to get all responses...$VAR1->{ETPT}{SERVER}
Probably you want to go for each element of the array like this:$VAR1->{ETPT}{SERVER}[0]{RESPONSE} # First element of the array $VAR1->{ETPT}{SERVER}[1]{RESPONSE} # Second element of the array
Hope this helps.for (@{$VAR1->{ETPT}{SERVER}}) { # here $_->{RESPONSE} is each response of the array }
Alberto Simões
In Section
Seekers of Perl Wisdom