Given the following XML::Simple object how would I copy one of the key values into a scalar assignment. The output below if from print Dumper($xmlobjectreturnedfrommodule);
.
$VAR1 = {
'Address2' => {},
'City' => {},
'EmailAddress' => {},
'FName' => {},
'PostalCode' => {},
'LoginID' => {},
'StateProvinceChoice' => {},
'StateProvince' => {},
'Phone' => {},
'Country' => {},
'Site' => {},
'Address1' => {},
'PhoneExt' => {},
'LName' => {},
'OrganizationName' => {},
'Fax' => {}
};
Normally with a hashref
I would just using something like the following:
print $xmlobjectreturnedfrommodule->{'LoginID'};
but it is returning the following HASH(0x1e32640) instead of the keys value in the hashref
. Is there something about XML::Simple
that is causing this or am I missing something?