Answer by Borodin for how to convert xml to hash and retrieve the values from it
If you remove the ForceArray option and use the default settings then XML::Simple will do what you ask. However you should use something other than XML::Simple for new code as it has many problemsuse...
View ArticleAnswer by choroba for how to convert xml to hash and retrieve the values from it
As the Dumper output shows, ForceArray created some arrays on the way.my $name = $ref->{server1}[0]{servername}[0];That's one of the reasons why even the documentation of XML::Simple warns against...
View Articlehow to convert xml to hash and retrieve the values from it
I have simple xml for which dumper is getting generated, I need to convert the xml to hash, I am using XML::Simple package, how can I able to achieve it.basically I need to get the value from hash like...
View Article