Hi Monks, I am parsing a XML file and instead of getting the value of this variable I am getting the representation of the hash, What I am doing wrong, I can't see it anymore, here is a sample code of where the issue is:
my $get_phone="";
if (ref($xml_data->{'mainA'}->{'mainB'}->{'mainC'}) eq 'ARRAY') {
$get_phone = $xml_data->{'mainA'}->{'mainB'}->{'mainC'}->[0];
} else {
$get_phone = $xml_data->{'mainA'}->{'mainB'}->{'mainC'};
}
$got_phone = $get_phone->{'mainD'}->{'mainE'}->{'mainF'}->{'mainG'
+};
print "<br>**$got_phone**<br>";
# I am getting this Result: **HASH(0xa8f8064)**
Thanks for the help!