OK I am using XML:

imple to parse a generic XML file, it produces an array like this:
$VAR1 = {
'department' => [
'Operations'
],
'name' => [
'John Doe'
],
'****' => [
'M'
],
'age' => [
'43'
]
};
How can I get to the data in a generic form ? Everything lists access like $var->{"name"}
Is there a way to do foreach keys and get everything ? How about getting children ?
I tried
my $ref = XMLin($xml);
foreach (keys $ref) {
print $_." ".$ref->{$_}."\n";
}
but $ref is not an hash.
I know I am close.