I am new with perl and i want to get keys of Hash table generated using XML::SIMPLE
module
like this
$data = $xml->XMLin("tp.xml");
Here is the structure generated
$VAR1 = {
'technical-profile' => {
'WEB' => {
'mandatory-param' => {
'value' => 'high',
'name' => 'screenCapability',
'case-sensitive' => 'no'
}
},
'WAP/PDA' => {
'description' => 'wap/sparphone',
'mandatory-param' => {
'value' => 'low|intermediate',
'name' => 'screenCapability',
'case-sensitive' => 'no'
}
},
'WAP' => {
'description' => 'wap/sparphone',
'mandatory-param' => {
'value' => 'low',
'name' => 'screenCapability',
'case-sensitive' => 'no'
}
}
}
};
I tried this
print "Key: $_" foreach (keys%data);
but i get nothing; i want to print the WEB
WAP/PDA
and WAP
how is that possible please ?