|more useful options|
Dereferencing a hashref from XML::Simpleby helgi (Hermit)
|on Jul 28, 2006 at 10:40 UTC||Need Help??|
helgi has asked for the
wisdom of the Perl Monks concerning the following question:
Hello, fellow Monks.
I have been trying to use XML::Simple to parse and count elements from an XML file.
I am having trouble getting dereferencing the hashref structure that I get from the XMLin function. I have tried many many methods and I have read the documentation over and over again, but still no luck. Whatever I try, everything returns either empty or the reference itself.
What I want to get out is a hash %file_url, with filenames as the elements, something like
Here is the code with a much simplified version of the XML. The Data::Dumper parts are just there so that I can be sure that I am feeding the data in correctly. They are not necessary or desirable for the final code.
Is there perhaps a better way to do this than to use XML::Simple?
I hope someone is able to help. I know this should be a really simple problem, but I'm just not getting it.
hbriem AT f-prot DOT com